PrashantMaheshw
3 years agoQrew Captain
(Answer) Auto Time Adjusting Jinja Date
This took me some time to achieve
You can use Time.delta in Jinja to adjust hours ,weeks , months or even years.
I had a case to create an auto reminder after 3 months after the date was created (ofcourse we could use a simple formula field but where's the fun)
{{((time.now|timezone('Asia/Calcutta'))+ time.delta(months=3)).strftime('%Y-%m-%d')}}
------------------------------
Prashant Maheshwari
------------------------------
You can use Time.delta in Jinja to adjust hours ,weeks , months or even years.
I had a case to create an auto reminder after 3 months after the date was created (ofcourse we could use a simple formula field but where's the fun)
{{((time.now|timezone('Asia/Calcutta'))+ time.delta(months=3)).strftime('%Y-%m-%d')}}
- Replace TimeZone with your time zone
------------------------------
Prashant Maheshwari
------------------------------