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
Regular Contributor
Regular Contributor

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 

 

 

9 REPLIES 9

PremMahadikar
All-Star
All-Star

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
All-Star
All-Star

@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
Regular Contributor
Regular Contributor

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 

@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
Regular Contributor
Regular Contributor

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 

 

try below

below

below

${DateUtils.formatDateWithFrenchDay(delegates.createdate)}


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

HichamElk
Regular Contributor
Regular Contributor

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

Thank you Raghu !

Abhinav
New Contributor III
New Contributor III

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,

You can mention time zone as UTC so end user can convert 


Regards,
Rushikesh Vartak
If you find this response useful, kindly consider selecting 'Accept As Solution' and clicking on the 'Kudos' button.