cobalt.rs
cobalt.rs copied to clipboard
Formatted dates only supports rendering English words
At the moment I'm forced to use %dd %Mon %YYYY %HH:%MM:%SS %zzzz
as date format. That's ok for the template header but I'd like to render it in an other format.
How would you do this?
Ah... here it is: https://help.shopify.com/themes/liquid/filters/additional-filters#date
This is cool but the month name is still in English :-\
Can't you simply use %m
and print the month no. instead of the month name? :)
What about:
{% assign month = post.date | date: "%m" %}
{% case month %}
{% when '01' %}
Januar
{% when '02' %}
Februar
{% else %}
Other
{% endcase %}