Last active
April 25, 2020 10:10
-
-
Save aniruddha27/a9f7edfb1c14b25d83811a572ce9270a 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
d1 = datetime.now() | |
# week starts from 0 | |
print(d1.weekday()) # output 3 for Thurday | |
# week starts with 1 | |
print(d1.isoweekday()) # output 4 in ISO format |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment