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
мая 22
|
35482 | |||
|
0
мар. 19
|
5142 | |||
|
0
янв. 19
|
6417 | |||
|
4
февр. 24
|
14061 | |||
|
0
янв. 18
|
4847 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.