I have a form with an input type date and this form will be sent to an email. The format of the data is YYYY-MM-DD. I would like to change the format. How do I do this?
Do you need to change the format that is allowed to be input in the form? Or do you just need to change the date as it appears in the email?
When you have a DateField in a form, internally, Django converts that date to an internal format. When you use that date elsewhere, it then converts it to the desired format. The date is not stored as “YYYY-MM-DD” internally.