Forum Discussion
How to change the date format in an email using liquid
- 2 years ago
Hey Stella,
Try this:
{{event_properties.${datepropertyname} | date: "%d.%m.%Y" }}
It's the same syntax for custom attributes, just add "|" after the first closing curly bracket and define the format of the date attribute.
- 2 years ago
Hi stella_issupow
To add to Arso's great answer here is a reference for time formatting conventions:
strftime reference
Ciao, Arso and DavidO need to bring this topic up again, as I'd like to know if this is possible also with api.trigger properties. Not sure about it
Thanks a lot
- Arso26 days agoSpecialist
You should be able to do it, if the api call is built properly. You need to have a trigger_properties object within the api call, where you can put all the properties that you want to use and reference in the communication.
Then, a simple {{ api_trigger_properties.${datepropertyname} | date: "%d.%m.%Y" }} would do the trick.
Related Content
- 8 months ago
- 2 years ago