python how to print year out of datetime code example
Example 1: python get day month year
import datetime
now = datetime.datetime.now()
print(now.year, now.month, now.day, now.hour, now.minute, now.second)
Example 2: how to get date in numbers using python
from datetime import datetime
shortDate = datetime.today().strftime('%Y-%m-%d')