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
|
4268 | ||
|
0
8월 18
|
6918 | ||
|
3
2월 25
|
3389 | ||
|
0
5월 24
|
46 | ||
|
1
4월 24
|
3283 |