コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
360 ビュー

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