Skip to content

Instantly share code, notes, and snippets.

@jroo
Created March 23, 2009 01:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jroo/83363 to your computer and use it in GitHub Desktop.
Save jroo/83363 to your computer and use it in GitHub Desktop.
#python string date to date
date_str = "June 8, 1976"
release_date = time.strftime('%Y-%m-%d', time.strptime(date_str, '%B %d, %Y'))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment