hi,
i need to know how to add 55 years for current date time in odoo.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
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
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ść | |
---|---|---|---|---|
|
3
mar 24
|
3790 | ||
|
0
sie 18
|
6472 | ||
|
3
lut 25
|
2494 | ||
|
0
maj 24
|
46 | ||
|
1
kwi 24
|
2642 |