Skip to main content

I have an API-triggered broadcast that have date attributes, “EffectiveDate”, “UpdateDate”.

In the message I want to send out in my broadcast, I would like to format these dates according to the user’s locale which is in the user record.  

For example, I would like the following:
 

  • For long dates:

    • en-US:  June 17, 2024

    • en-CA:  June 17, 2024

    • fr-CA:  17 juin 2024

    • de-DE:  04. Oktober 2024

       

  • For short dates:

    • en-US:  10/04/2024

    • en-CA:  2024-10-04

    • fr-CA:  2024-10-04

    • de-DE: 04.10.2024

How do I accomplish this?  

Be the first to reply!

Reply