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
Créez un compte dès aujourd'hui pour profiter de fonctionnalités exclusives et échanger avec notre formidable communauté !
S'inscrire| Publications associées | Réponses | Vues | Activité | |
|---|---|---|---|---|
|
3
mars 24
|
6544 | |||
|
0
août 18
|
8790 | |||
|
2
août 25
|
5171 | |||
|
3
févr. 25
|
6937 | |||
|
0
mai 24
|
46 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.