I was working with one of my projects when I came across with an interesting question.
As we know, by default input
type="date" shows date as
Is it possible to change its format to something like:
There is no way possible to change the format
We have to differentiate between the over the wire format and the browser’s presentation format.
Wire format The HTML5 date input specification  refers to the RFC3339 specification , which specifies a full-date format equal to: yyyy-mm-dd. See section 5.6 of the RFC3339 specification for more details.
Presentation format Browsers are unrestricted in how they present a date input. At the time of writing Chrome has the most extensive date support . It displays a date picker using the user’s local calendar format. Opera (v10.6+) also displays a date picker, but shows the date in the wire format. Other browsers, such as Firefox 24 and Internet Explorer 9/10 display a text input field with the wire format.
Subscribe to Tural's Notebook
Get the latest posts delivered right to your inbox