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 = "/cgi-bin/html5.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