Click HERE to see how Saviynt Intelligence is transforming the industry. |
09/05/2022 07:53 AM
Hi Team ,
I have a requirement where i need to print the current date in the email template .
Suppose the email was triggered on 5th september then the body of the email should contain this date .
How to achieve that ? is there a associated system variable for the same
Thanks
Ankit Jindal
Solved! Go to Solution.
09/05/2022 08:03 AM - edited 09/05/2022 08:46 AM
You can try java methods
Today is ${new Date()}
Email Output :
09/08/2022 02:49 AM
@AJ23494 ,
In case the 'new' keyword is blocked on your app version, you can use the below :
${Calendar.getInstance().getTime()}
You will get date as below :
09/09/2022 04:25 AM
Hi Sahaj ,
Is there a way to only print the date and not time ?
Thanks & Regards ,
Ankit Jindal
09/09/2022 04:56 AM
@AJ23494
Yes try : ${Calendar.getInstance().getTime().format('yyyy-MM-dd')}