Skip to content
Related Articles

Related Articles

Save Article
Improve Article
Save Article
Like Article

HTML | <input type=”datetime-local”>

  • Last Updated : 29 May, 2019

The HTML <input type=”datetime-local”> is used to define a date and time control. The value must include the year, month, day and time.


Attention reader! Don’t stop learning now. Get hold of all the important HTML concepts with the Web Design for Beginners | HTML  course.

<input type="datetime-local">


<!DOCTYPE html> 
        HTML input type datetime-local
        h1 { 
            color: green; 
        body { 
            text-align: center; 
    <h2> HTML <input type = "datetime-local"></h2
    Date Of Birth: 
    <input type="datetime-local" id="Test_DatetimeLocal"


Supported Browsers: The browsers supported by <input type=”datetime-local”> are listed below:

  • Google Chrome 20.0
  • Internet Explorer 13.0
  • Opera 10.1
My Personal Notes arrow_drop_up
Recommended Articles
Page :