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
......
Stwórz konto dzisiaj, aby cieszyć się ekskluzywnymi funkcjami i wchodzić w interakcje z naszą wspaniałą społecznością!
Zarejestruj się| Powiązane posty | Odpowiedzi | Widoki | Czynność | |
|---|---|---|---|---|
|
2
maj 22
|
35440 | |||
|
0
mar 19
|
5112 | |||
|
0
sty 19
|
6377 | |||
|
4
lut 24
|
13999 | |||
|
0
sty 18
|
4822 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.