Solved

Day and month in Danish

  • 14 September 2023
  • 1 reply
  • 28 views

Badge +3

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

icon

Best answer by stephen.trumble 15 September 2023, 13:20

View original

1 reply

Userlevel 7
Badge +60

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