INPUT Datetime-Local Description:
The datetime-local INPUT tag gives you a way to request dates with times in your web form. The date will be collected with the year, month, and day and the time will be collected with hour, minutes, seconds, and fractions of seconds, and no timezone. The browser or user agent should display a calendar and clock or other date control input device to allow users to submit dates.
DTD: HTML5: <!doctype html>
INPUT Datetime-Local Web Browser Support:
At this time, no browser supports the INPUT datetime-local type with a calendar. Instead, they display a text box. You can still use this input type, you will just have to validate that the contents are a date and time with a script or CGI.
HTML Versions
INPUT Datetime-Local Attributes:
Global attributes, event attributes, and the input tag attributes. Plus: </p>
- autocomplete
- list
- max
- min
- readonly
- required
- step
- valueAsNumber
- selectedOption
- stepDown()
- stepUp()
INPUT Datetime-Local Usage:
Standard datetime-local input tag
<form>
<input type="datetime-local" value="2010-12-16 12:01:00">
</form>
See an example of a standard color input tag.
INPUT Datetime-Local Special Notes:
The input datetime-local tag is not supported by any browsers, but you can still use this input type and validate that the submitted data is a date. That way, when other browsers do start supporting it, your forms won't have to be modified.

