Django - How to format a date field in the form Year Month Day

If I have an object with a field called "date" and type date, I'm getting the following output Jan. 9, 2023

I have to use the filter date and use the format desired

{{ t.date|date:"Y-m-d" }}
The output will be:
2023-01-03 

Comentarios