HTML5 - datetime local
A date and time (year, month, day, hour, minute, second, fractions of a second) encoded according to ISO 8601, with no time zone information.
Example
<!DOCTYPE HTML>
<html>
<body>
<form action="/?originalUrl=https%3A%2F%2Fwww.tutorialspoint.com%2Fcgi-bin%2Fhtml5.cgi" method = "get">
Local Date and Time : <input type = "datetime-local" name = "newinput" />
<input type = "submit" value = "submit" />
</form>
</body>
</html>
Output
html5_web_forms2.htm
Advertisements