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
......
Crie uma conta hoje mesmo para aproveitar os recursos exclusivos e interagir com nossa incrível comunidade!
Inscreva-se| Publicações relacionadas | Respostas | Visualizações | Atividade | |
|---|---|---|---|---|
|
2
mai. 22
|
35483 | |||
|
0
mar. 19
|
5142 | |||
|
0
jan. 19
|
6418 | |||
|
4
fev. 24
|
14066 | |||
|
0
jan. 18
|
4848 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.