Skip to Content
Menu
This question has been flagged
1 Reply
361 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
Oct 16
31272
1
Sep 15
3929
1
Jun 15
845
0
Apr 15
690
2
Apr 15
870