Input Type: Datetime-Local

The input type datetime is removed from the HTML standard. Use datetime-local instead, which allows the user to select a date and time (no time zone).

<input type="datetime-local">

Depending on browser support, a date picker can show up in the input field.

HTML file: Displayed by browser:
<form action="http://www.w3schools.com/html/action_page.php">
  Birthday:
  <input type="datetime-local" name="bdaytime">
  <input type="submit" value="Send">
</form>
Birthday:

Incompatible with Firefox and Internet Explorer but works with Chrome, Safari and Opera (as of September 2015).

Back button Table of Contents Next button