Получите сегодняшний год, месяц и дату, используя сегодня метод

# import the date class
from datetime import date

# date object of today's date
today = date.today()

print("Current year:", today.year)
print("Current month:", today.month)
print("Current day:", today.day)
Outrageous Ostrich