HTML: input type="datetime-local"

The local date-time input collects a date and time without including a time-zone offset.

What you will learn

Minimal example

<label for="meeting">Meeting time</label>
<input id="meeting" name="meeting" type="datetime-local"
       step="900" required>

The submitted value contains a local date and time, but no offset. A browser cannot tell whether the time is in Tokyo, London, or another zone.

Common mistakes