OomensT
2 years agoActive Member
Date formatting with correct Locale
Hi,
I'm trying to add formatting to a datetime field, however if I use formatting that prints weekdays, months fully the English language is always used. Even when the locale of the user is something different.
I can't find how I can pass locale to this date formatting.
Current liquid code:
{{canvas_entry_properties.${date} | date: '%A %d %B %Y - %H:%M'}}
This prints: Monday 07 August 2023 - 08:23,
but should print: Maandag 07 augustus 2023 - 08:23 in locale nl-NL
Documentation on date formatting: https://www.braze.com/docs/user_guide/personalization_and_dynamic_content/liquid/filters/#date-filter