Announcing the Saviynt Knowledge Exchange unifying the Saviynt forums, documentation, training,
and more in a single search tool across platforms. Read the announcement here.

Delegate Email Template Binding Variables

HichamElk
New Contributor III
New Contributor III

Hi team,

We are setting up the email template for delegates. We have to write one part in french 

HichamElk_0-1715849230257.png

Fact is that the binding variables createdate / startdate / enddate shows the date in english format with the UTC format 

HichamElk_1-1715849299593.png

Can it be adapted so the date is written in french with Paris timestamp ? 

Thank you 

 

 

7 REPLIES 7

PremMahadikar
Valued Contributor
Valued Contributor

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

Raghu
Valued Contributor III
Valued Contributor III

@HichamElk  try below insteadOf  delegates.createdate

${delegates.createdate.format("MM-dd-yyyy hh:mm a",TimeZone.getTimeZone("Europe/Paris"))}


Thanks,
Raghu
If this reply answered your question, Please Accept As Solution and hit Kudos.

HichamElk
New Contributor III
New Contributor III

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 

Raghu
Valued Contributor III
Valued Contributor III

@HichamElk  try below

${delegates.createdate.format("EEEE MM-dd-yyyy 'à' hh:mm a", TimeZone.getTimeZone("Europe/Paris"), Locale.FRENCH)}


Thanks,
Raghu
If this reply answered your question, Please Accept As Solution and hit Kudos.

HichamElk
New Contributor III
New Contributor III

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 

 

Raghu
Valued Contributor III
Valued Contributor III

try below

below

below

${DateUtils.formatDateWithFrenchDay(delegates.createdate)}


Thanks,
Raghu
If this reply answered your question, Please Accept As Solution and hit Kudos.

HichamElk
New Contributor III
New Contributor III

Ok, this one does'nt work too. But it's ok, we will keep the earlier version you gave me ! 

Thank you Raghu !