Skip to main content

Hello Klaviyo Community,

I am seeking some assistance with changing the default date format in Klaviyo. Currently, it is set to display in English, but I need it to show the day and month in Danish. Could anyone guide me on how to make this adjustment?

 

{% today '%Y-%m-%d' as today %} {{ today|days_later:7|format_date_string|date:'M d' }}

 

Thank you in advance for your help!

Best regards

Jeff

Hey @jeffkoenig 

Thanks for reaching out for help with this!

In order to format the dates in the DD-MM-YYYY format, you would set up the code like this:  

{% today '%Y-%m-%d' as today %} {{ today|days_later:7|format_date_string|date:'d-m-Y' }}

 
Our guide on Date variables has more information on various ways you can modify how the dates are rendered: 
Date Variables in Templates Reference

Hope this helps!


Reply