Skip to content

Instantly share code, notes, and snippets.

@abulte
Created November 15, 2012 14:02
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 abulte/4078770 to your computer and use it in GitHub Desktop.
Save abulte/4078770 to your computer and use it in GitHub Desktop.
Current date string python
from datetime import datetime
today = datetime.today()
date_string = '%s%s%s-%s%s%s' % (today.year, today.month, today.day, today.hour, today.minute, today.second)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment