Context
On most services (applications or web sites), there is a strong need regarding input dates.
The best way of achieving this is by displaying a calendar to the user. There are many ways of doing this using JavaScript but since the HTML5 team has created a specific tag to deal with that, we could use it, at least on devices that support it.
HTML5 – what does the W3C tell us
« The input element with a type attribute whose value is « date » represents a control for setting the element’s value to a string representing a date. »
A valid full-date as defined in RFC 3339, with the additional qualification that the year component is four or more digits representing a number greater than 0.
Example: 1996-12-19
In the HTML source, it looks like this : <input type=”date” name=”mydate”>
What do we expect ?
This tag is designed to input a date. We are expecting that a compliant browser would display a calendar without any use of JavaScript or at least it would display an optimized keyboard on touch screen devices.
Continue reading »