Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /home/myscript/public_html/classes/classdb.php on line 42
Datetime Attribute | Input Types | HTML5 Tutorial | Example

datetime attribute

<input type=datetime>


Datetime Attribute permits the user to select the "date & time" with TimeZone.

Example Code:

Result :

Choose date & time:
  • User can pick the date and time with the "Time Zone".
  • The time zone mentioned with this attribute is Coordinated Universal Time [UTC].
  • Only Opera displays the time zone in a seperate field.
  • In "Chrome & Safari", the time zone will be displayed along with the date and time.


It will function only in Opera, Chrome and Safari browsers.

Ask Questions

Ask Question