Объяснение:
Можно воспользоваться функцией strftime() для преобразования текущей даты в нужный формат
import datetime as dt
today = dt.datetime.today()
print('Current date and time:', today)
print('Current year:', today.strftime("%Y"),
' Month of year:', today.strftime("%B"))
print('Week number of the year:', today.strftime("%W"),
'Weekday of the week:', today.strftime("%w") )
print('Day of year:', today.strftime("%j"), 'Day of the month:',
today.strftime("%d"), 'Day of week:', today.strftime("%A"))
Питон очень привередлив с отступами - после копирования, надо правильно выставить отступы