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
......
Cree una cuenta para poder utilizar funciones exclusivas e interactuar con la comunidad.
InscribirsePublicaciones relacionadas | Respuestas | Vistas | Actividad | |
---|---|---|---|---|
|
2
may 22
|
33838 | ||
|
0
mar 19
|
3996 | ||
|
0
ene 19
|
5035 | ||
|
4
feb 24
|
12246 | ||
|
0
ene 18
|
3893 |