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