跳至內容
選單
此問題已被標幟
1 回覆
359 瀏覽次數

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
31272
1
9月 15
3929
1
6月 15
845
0
4月 15
690
2
4月 15
870