Date and time input types

Form field widget to easily allow users to enter a date, time or both, generally by using a calendar/time input widget.

IE Edge Firefox Chrome Safari Opera iOS Safari Opera Mini Android Browser Blackberry Browser Opera Mobile Chrome for Android Firefox for Android IE Mobile UC Browser for Android Samsung Internet QQ Browser Baidu Browser
49
56 9.3
See notes:
  • 2
4.4
14 52 57 10 10.0-10.2
See notes:
  • 2
4.4.3-4.4.4 4
11 15 53
See notes:
  • 4
58 10.1 44 10.3
See notes:
  • 2
all 56 10 37 57 52 11 11.4 5 1.2 7.12
54
See notes:
  • 4
59 TP 45
55
See notes:
  • 4
60 46
56
See notes:
  • 4
61

Notes

Older versions of Safari provide date-formatted text fields, but no real calendar widget.

Chrome, Opera, and Microsoft Edge also support the datetime-local type for both date and time.

There used to also be a datetime type, but it was dropped from the HTML spec since only Presto ever fully supported it.

Links