Skip to Content
Menu
This question has been flagged
1 Odpoveď
341 Zobrazenia

Hi everybody ;)

Please who does know how to get the month of a field type DATE??!!!

Thanks a lot

 
Avatar
Zrušiť
Best Answer

Hi,,

Try this script:-

date = datetime.strptime(date_field, DEFAULT_SERVER_DATE_FORMAT)

month = date.month

Hope this helps..

Avatar
Zrušiť
Related Posts Replies Zobrazenia Aktivita
4
okt 16
31256
1
sep 15
3926
1
jún 15
844
0
apr 15
690
2
apr 15
867