Date and time <input> types
Widely available
The <input type="date">
and <input type="time">
HTML elements represent date and time pickers in a form.
To learn more, see
HTMLInputElement: valueAsDate property,
<input type="date">,
<input type="datetime-local">,
<input type="month">,
<input type="time">,
<input type="week"> at MDN.
Compatibility (view on caniuse.com)
- Chrome 20 Released on 2012-06-26
- Chrome Android 25 Released on 2013-02-27
- Edge 12 Released on 2015-07-29
- Firefox 57 Released on 2017-11-14
- Firefox for Android 57 Released on 2017-11-28
- Safari 14.1 Released on 2021-04-26
- Safari on iOS 5 Released on 2011-10-12
Specifications
- HTML Standard (#date-state-(type=date)), from HTML Workstream (WHATWG).