Skip to Content
Menú
This question has been flagged
1 Respondre
342 Vistes

Hi everybody ;)

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

Thanks a lot

 
Avatar
Descartar
Best Answer

Hi,,

Try this script:-

date = datetime.strptime(date_field, DEFAULT_SERVER_DATE_FORMAT)

month = date.month

Hope this helps..

Avatar
Descartar
Related Posts Respostes Vistes Activitat
4
d’oct. 16
31257
1
de set. 15
3927
1
de juny 15
844
0
d’abr. 15
690
2
d’abr. 15
867