Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
d1 = datetime.now()
# retuns year, week, month
print(d1.isocalendar())
print('Week :',d1.isocalendar()[1])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment