PARTNERS - Please join us for our upcoming webinar:
Leveraging Intelligent Recommendations for Operational Transformation.
AMS Partners click HERE | EMEA/APJ Partners click HERE

Task Completion Email Template - How to pull date and add days to it?

jralexander137
Regular Contributor
Regular Contributor

Hi I am looking for guidance on how to properly get today's date and add 90 days to it in a Task Completion Email Template.

 IT new hire notification Request for ${user?.firstname} ${user?.lastname} - <%= new java.text.SimpleDateFormat("yyyy-MM-dd").format(new java.util.Date()) %>

Looks to pull today's date but I have not been able to figure out how to add 90 days to it. Is there a better/cleaner way to pull today's date and add 90 days?

1 REPLY 1

rushikeshvartak
All-Star
All-Star

rushikeshvartak_0-1722476281707.png

rushikeshvartak_2-1722476353410.png

 

Hi Rushi,

Todays Date ${new Date().format('yyyy-MM-dd')}


90 days from Todays Date : ${ new Date().plus(90).format('yyyy-MM-dd')}

 


Regards,
Rushikesh Vartak
If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.