Hi everybody ;)
Please who does know how to get the month of a field type DATE??!!!
Thanks a lot
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
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
|
31258 | ||
|
1
9月 15
|
3927 | ||
|
1
6月 15
|
844 | ||
|
0
4月 15
|
690 | ||
|
2
4月 15
|
867 |