Skip to Content
मेन्यू
This question has been flagged
1 Reply
340 Views

Hi everybody ;)

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

Thanks a lot

 
Avatar
Discard
Best Answer

Hi,,

Try this script:-

date = datetime.strptime(date_field, DEFAULT_SERVER_DATE_FORMAT)

month = date.month

Hope this helps..

Avatar
Discard
Related Posts Replies Views Activity
4
अक्तू॰ 16
31256
1
सित॰ 15
3926
1
जून 15
844
0
अप्रैल 15
690
2
अप्रैल 15
867