I have a list of dates in datetime format and i d'like formate this.
form example:
{% for date in dates %}
{{date}}
{% endfor %}
You can use the python strftime function. It works in Jinja2.
{% for date in dates %}
{{ date.strftime('%Y-%m-%d') }}
{% endfor %}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With