hi,
i need to know how to add 55 years for current date time in odoo.
Hi,
Try this,
from datetime import datetime, timedelta date_55_year_after =datetime.now()+timedelta(months=660)
Like the months used above you can give days and year.
NB : 660 = 12 months * 55 years
Thanks
Cree una cuenta para poder utilizar funciones exclusivas e interactuar con la comunidad.
Inscribirse| Publicaciones relacionadas | Respuestas | Vistas | Actividad | |
|---|---|---|---|---|
|
3
mar 24
|
6553 | |||
|
0
ago 18
|
8799 | |||
|
2
ago 25
|
5185 | |||
|
3
feb 25
|
6955 | |||
|
0
may 24
|
46 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.