Hi there :)
I want to be able to output the weekdays in different languages when using Django:
{% today '%Y-%m-%d' as today %} {{ today|days_later:3|format_date_string|date:'l' }}
Does anybody have a solution to this?
Thanks!
Hi there :)
I want to be able to output the weekdays in different languages when using Django:
{% today '%Y-%m-%d' as today %} {{ today|days_later:3|format_date_string|date:'l' }}
Does anybody have a solution to this?
Thanks!
You can localize the date strings! Here’s an example:
{% load i18n %}
{% language 'fr-fr' %}
{% today '%Y-%m-%d' as today %} {{ today|days_later:3|format_date_string|date:'l' }}
{% endlanguage %}
Thank you! :D
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.