Skip to content

Instantly share code, notes, and snippets.

@winnydejong
Last active January 5, 2021 09:51
Show Gist options
  • Save winnydejong/2de9d75641af3208a9d0fe4456325eae to your computer and use it in GitHub Desktop.
Save winnydejong/2de9d75641af3208a9d0fe4456325eae to your computer and use it in GitHub Desktop.
Since I always forget how to set the dates as I use them in all my filenames, I made myself this gist. Will thank me later, surely. -_-
import datetime as dt
now = dt.datetime.now().strftime('%y%m%d %H.%M')
today = dt.datetime.now().strftime('%y%m%d')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment