09/07/2023 10:41 PM
Hello Team,
We have a requirement to print current date and time (UTC format) in email template like below format
Can someone help me with proper binding variable?
Thanks,
Bhargav.
09/08/2023 12:18 AM
Hi @Bhargav
Can you try using the following:
${new Date().format('MM-dd-yyyy hh:mm a',TimeZone.getTimeZone('UTC'))}
Below is a list of all available timezones:
What are the Java TimeZone IDs? | Gary Gregory (wordpress.com)
09/08/2023 12:19 AM
@Bhargav please try below:
${(new Date()).format('yyyy-MM-dd'T'HH:mm:ss',TimeZone.getTimeZone("UTC"))}
09/08/2023 04:34 AM
Thank you @nimitdave @armaanzahir
Also I have attached email template in Analytics. Once we run the Analytics or Analytics job, for every trigger it's sending 2 emails. It should send only one email for each trigger.
What might be the issue and how can we achieve this?
Thanks,
Bhargav.
09/15/2023 02:28 AM
Dear Team,
For use in email templates, can someone assist me with binding a variable for the date format of - 15th Sept 2023 ?
Regards,
Bhargav.