Articles → HTML 5 → Date input element in HTML5

Date input element in HTML5






Purpose





Syntax


<input type="date" />



Example


<!DOCTYPE html>
<html lang="en">
<head>
    <title>Bootstrap Example</title>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body>
    <input type="date" />
</body>
</html>



Output



Click to Enlarge


Browser support


Internet ExplorerFirefoxChromeSafariOperaEdge
12.057.020.0Not supported10.1Yes



Video





Posted By  -  Karan Gupta
 
Posted On  -  Friday, November 17, 2017

Query/Feedback


Your Email Id  
 
Subject 
 
Query/FeedbackCharacters remaining 250