Skip to Content
Menu
This question has been flagged
1 Reply
2578 Views

hi,

     i need to know how to add 55 years for current date time in odoo.

Avatar
Discard
Best Answer

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

Avatar
Discard
Related Posts Replies Views Activity
3
Mar 24
3188
0
Aug 18
5892
3
Apr 24
1016
0
May 24
46
1
Apr 24
1826