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
|
34157 | ||
|
0
3월 19
|
4188 | ||
|
0
1월 19
|
5254 | ||
|
4
2월 24
|
12508 | ||
|
0
1월 18
|
4031 |