Reputation: 310960
What is wrong with this simple HTML page that a date picker is not shown in FireFox 30.0 and IE 11?
<!DOCTYPE html>
<html>
<head>
<title>Untitled Page</title>
</head>
<body>
<form>
<label> Date field:</label><br />
<input type="date" value="" />
</form>
</body>
</html>
Upvotes: 13
Views: 57036
Reputation: 268344
Internet Explorer 11 does not currently support <input type='date'>
, though we did recently announce that work was underway to do so. You can track that progress online at http://status.modern.ie.
Firefox supports <input type='date'>
. The bug requesting support was closed on June 22, 2016
If you need this functionality today, I would encourage you to use jQuery's Datepicker.
Upvotes: 24
Reputation: 39
It is already in Firefox since version 51 (January 26, 2017), but it is not activated by default (yet). To activate it:
Go to "about:config" in your address bar, then search for the dom.forms.datetime
property and set it to true
.
Upvotes: 0
Reputation: 5206
Edge supports the datepicker, but after 4+ years, it looks like IE never will. Same with Safari desktop (though Safari mobile supports it). See: CanIUse datepicker support.
Chrome and Edge take the date format from the user's desktop system settings, which may be surprising if you're expecting ISO 8601 and your users don't live in Denmark or Canada.
JQuery's datepicker works with bootstrap 4 only if you use the REGULAR JQuery distribution. the Bootstrap 4 docs show the SLIM version, which tripped me up for a bit.
Other alternatives:
Upvotes: 9