Код: Выделить всё
import datetime
currentDate = datetime.date.today()
print (currentDate)
print (currentDate.year)
Код: Выделить всё
AttributeError: module 'datetime' has no attribute 'date'
Подробнее здесь: https://stackoverflow.com/questions/533 ... ibute-date