Using Jinja2, how do I format a date field? I know in Python I can simply do this:

print(car.date_of_manufacture.strftime('%Y-%m-%d'))

But how do I format the date in Jinja2?

10 Answers
10

Tags:

Leave a Reply

Your email address will not be published. Required fields are marked *