跳至内容
菜单
此问题已终结
1 回复
366 查看

Hi everybody ;)

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

Thanks a lot

 
形象
丢弃
最佳答案

Hi,,

Try this script:-

date = datetime.strptime(date_field, DEFAULT_SERVER_DATE_FORMAT)

month = date.month

Hope this helps..

形象
丢弃
相关帖文 回复 查看 活动
4
10月 16
31279
1
9月 15
3941
1
6月 15
852
0
4月 15
691
2
4月 15
877