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
Create an account today to enjoy exclusive features and engage with our awesome community!
Registrar-seRelated Posts | Respostes | Vistes | Activitat | |
---|---|---|---|---|
|
3
de març 24
|
3798 | ||
|
0
d’ag. 18
|
6477 | ||
|
3
de febr. 25
|
2500 | ||
|
0
de maig 24
|
46 | ||
|
1
d’abr. 24
|
2643 |