print SDstDate
gives below output:
<peewee.DateTimeField object at 0x7fd9dc8b0950>
and
print SDstDate.year
gives below output:
<peewee.Func object at 0x7f3737b0ef10>
Please help how can i extract the extract year from SDstDate. SDstDate is a dattetimefield object which i have fetched from mysql database through peewee.