Note: Django uses 'type': 'text'
for date fields so that it can have control over that field. When you specify 'type': 'date'
, you’re yielding control over to the browser.
Quoting from the blue note box at <input type="date"> - HTML: HyperText Markup Language | MDN
Note: The displayed date format will differ from the actual
value
— the displayed date is formatted based on the locale of the user’s browser , but the parsedvalue
is always formattedyyyy-mm-dd
.