Skip to content

Instantly share code, notes, and snippets.

@aniruddha27
Created April 25, 2020 10:15
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 aniruddha27/da11d9b8f017e8c29340a3a0b518b494 to your computer and use it in GitHub Desktop.
Save aniruddha27/da11d9b8f017e8c29340a3a0b518b494 to your computer and use it in GitHub Desktop.
# ISO format
d1_datetime = date.fromisoformat('2020-04-23')
print(d1_datetime)
print(type(d1_datetime))
d1_ISO = date(2020,4,23).isoformat()
print(d1_ISO)
print(type(d1_ISO))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment