Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Get Current Year, Month, and Day as Integers in Python 3 with the datetime Module
# REFERENCE: https://bit.ly/2JtjSto
import datetime
now = datetime.datetime.now()
print(now.year)
print(now.month)
print(now.day)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.