I would like to know how to change the format of a date type input
I have this input showing dd-mm-yyyy
<p>Fecha <input type="date" name="fecha" required></p>
But at the time of registering with php in my database (the column where you register is in text format) appears in yyyy-mm-dd format. p>
Does anyone know why?