Skip to content
Related Articles

Related Articles

HTML | <input type=”date”>

Improve Article
Save Article
  • Last Updated : 22 Jul, 2022
Improve Article
Save Article

The HTML <input type=”date”> is used to define a date picker or control field. The value will be the year, month and day. 

<input type="date"> 



<!DOCTYPE html>
    <title>HTML Input type = "Date" </title>
        h1 {
            color: green;
        h2 {
            font-family: Impact;
        body {
            text-align: center;
    <h2>HTML <input type="date"></h2>
    <input type="date"


Supported Browsers: 

  • Google Chrome 20.0 and above
  • Firefox 57.0 and above
  • Edge 12.0 and above
  • Opera 11 and above
  • Apple Safari 14.1 and above


My Personal Notes arrow_drop_up
Related Articles

Start Your Coding Journey Now!