Created
July 12, 2019 08:02
-
-
Save topherPedersen/a3cd1a9edee3421d1db2ef22a8c4d606 to your computer and use it in GitHub Desktop.
Get Current Year, Month, and Day as Integers in Python 3 with the datetime Module
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
# 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