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
相关帖文 | 回复 | 查看 | 活动 | |
---|---|---|---|---|
|
3
3月 24
|
3704 | ||
|
0
8月 18
|
6411 | ||
|
3
2月 25
|
2265 | ||
|
0
5月 24
|
46 | ||
|
1
4月 24
|
2531 |