HTML5 - datetime


Advertisements


A date and time (year, month, day, hour, minute, second, fractions of a second) encoded according to ISO 8601 with the time zone set to UTC.

Example

Live Demo
<!DOCTYPE HTML>
<html>
   
   <body>
      
      <form action = "/cgi-bin/html5.cgi" method = "get">
         Date and Time : <input type = "datetime" name = "newinput" />
         <input type = "submit" value = "submit" />
      </form>
   
   </body>
</html>

Output


html5_web_forms2.htm

Advertisements