Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
1 Balas
337 Tampilan

Hi everybody ;)

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

Thanks a lot

 
Avatar
Buang
Jawaban Terbai

Hi,,

Try this script:-

date = datetime.strptime(date_field, DEFAULT_SERVER_DATE_FORMAT)

month = date.month

Hope this helps..

Avatar
Buang
Post Terkait Replies Tampilan Aktivitas
4
Okt 16
31256
1
Sep 15
3925
1
Jun 15
844
0
Apr 15
690
2
Apr 15
867