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,
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
Maak vandaag nog een account aan om te profiteren van exclusieve functies en deel uit te maken van onze geweldige community!
Aanmelden| Gerelateerde posts | Antwoorden | Weergaven | Activiteit | |
|---|---|---|---|---|
|
3
mrt. 24
|
5276 | |||
|
0
aug. 18
|
7840 | |||
|
2
aug. 25
|
3433 | |||
|
3
feb. 25
|
4860 | |||
|
0
mei 24
|
46 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.