I am trying to use date objects.
And i want to extract the month from this field.
Please who can help me i need it please.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
I am trying to use date objects.
And i want to extract the month from this field.
Please who can help me i need it please.
from datetime import datetime
from openerp.tools import DEFAULT_SERVER_DATE_FORMAT
......
month = date_field and datetime.strptime(date_field, DEFAULT_SERVER_DATE_FORMAT).month
......
関連投稿 | 返信 | ビュー | 活動 | |
---|---|---|---|---|
|
2
5月 22
|
34593 | ||
|
0
3月 19
|
4468 | ||
|
0
1月 19
|
5553 | ||
|
4
2月 24
|
12874 | ||
|
0
1月 18
|
4313 |