Click HERE to see how Saviynt Intelligence is transforming the industry. |
05/16/2024 01:49 AM
Hi team,
We are setting up the email template for delegates. We have to write one part in french
Fact is that the binding variables createdate / startdate / enddate shows the date in english format with the UTC format
Can it be adapted so the date is written in french with Paris timestamp ?
Thank you
Solved! Go to Solution.
05/16/2024 02:33 AM
Hi @HichamElk ,
Can you try the below:
${startdate.format("MM-dd-yyyy hh:mm a",TimeZone.getTimeZone("Europe/Paris"))}
${enddate.format("MM-dd-yyyy hh:mm a",TimeZone.getTimeZone("Europe/Paris"))}
If this answers your question, please consider selecting Accept As Solution and hit Kudos
05/16/2024 02:37 AM
@HichamElk try below insteadOf delegates.createdate
${delegates.createdate.format("MM-dd-yyyy hh:mm a",TimeZone.getTimeZone("Europe/Paris"))}
05/16/2024 02:43 AM
Ok thank you it works well,
Result prints like that "05-16-2024 11:33 AM". Is it possible to write the day before the date ? For example : In french, "Jeudi 05-16-2024 à 11:33 AM" ?
Thank you for your help
05/16/2024 02:59 AM
@HichamElk try below
${delegates.createdate.format("EEEE MM-dd-yyyy 'à' hh:mm a", TimeZone.getTimeZone("Europe/Paris"), Locale.FRENCH)}
05/16/2024 03:12 AM
Thank you for your answer,
"Locale.FRENCH" doesn't seem to work, the email is not sent when i add this part.
When i take it off, the email is sent with the day written in english
Thank you
05/16/2024 04:28 AM
try below
below
below
${DateUtils.formatDateWithFrenchDay(delegates.createdate)}
05/16/2024 05:42 AM
Ok, this one does'nt work too. But it's ok, we will keep the earlier version you gave me !
Thank you Raghu !
07/24/2024 12:48 AM
Hi
In our case, Delegation mail receiver's could be on global level, there is NO fixed zone.
So can we convert startdate\enddate into local time zone of receiver's mail, instead of specifying exact time zone ?
Thanks you,
07/24/2024 08:09 PM
You can mention time zone as UTC so end user can convert