stella_issupow
2 years agoActive Member II
How to change the date format in an email using liquid
Hi everybody, greetings from Germany!
I want to display the date format of a custom property in an email in a different way.
In the propery, we save the date in this format: YYYY-MM-DD hh:mm:ss. ...
- 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