Skip to main content
Contributor I
September 14, 2023
Solved

Day and month in Danish

  • September 14, 2023
  • 1 reply
  • 72 views

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

    This topic has been closed for replies.
    Best answer by stephen.trumble

    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!

    1 reply

    stephen.trumble
    Klaviyo Alum
    September 15, 2023

    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!

    -Stephen