Skip to Content
Menu
This question has been flagged
1 Atsakyti
362 Rodiniai

Hi everybody ;)

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

Thanks a lot

 
Portretas
Atmesti
Best Answer

Hi,,

Try this script:-

date = datetime.strptime(date_field, DEFAULT_SERVER_DATE_FORMAT)

month = date.month

Hope this helps..

Portretas
Atmesti
Related Posts Replies Rodiniai Veikla
4
spal. 16
31275
1
rugs. 15
3933
1
birž. 15
846
0
bal. 15
690
2
bal. 15
870