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
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.
Does this work for custom attributes? I can't seem to make this set up work:
{{custom_attribute.${next_club_delivery_date}|date:"%d.%m.%Y"}}
- sparkplant2 months agoActive Member
Hi kppool
this will work with custom attributes as well.
Please make sure, that the field is recognized as a date-type in Braze: See Custom Attributes Data Types
You can take a look under Data Settings > Custom Attributes to see if Braze automatically detects the data type.
Related Content
- 6 months ago
- 2 years ago