Created
April 25, 2020 10:15
-
-
Save aniruddha27/da11d9b8f017e8c29340a3a0b518b494 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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