Skip to content

Instantly share code, notes, and snippets.

@piyonishi
Created May 20, 2013 07:34
Show Gist options
  • Save piyonishi/5610874 to your computer and use it in GitHub Desktop.
Save piyonishi/5610874 to your computer and use it in GitHub Desktop.
form datetime import datetime
date = '2013-05-20 16:31:59.199579'
strptime = datetime.strptime(date, '%Y-%m-%d %H:%M:%S.%f')
strftime = strptime.strftime('%B %d, %Y')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment