Articles → HTML 5 → Datetime-Local Input Element In Html5

Datetime-Local Input Element In Html5






Purpose





Syntax


<input type="datetime-local"/> 



Example


<!DOCTYPE html>
<html lang="en">

<head>
	<title></title>
</head>

<body>
	<form>
		<input type="datetime-local" /> </form>
</body>

</html>

Try It


Output


Picture showing the output of the datetime-local input element in HTML5
Click to Enlarge


Browser Support


Internet ExplorerFirefoxChromeSafariOperaEdge
13.0Not supported20.0Not supported10.1Yes



Posted By  -  Karan Gupta
 
Posted On  -  Friday, November 23, 2018

Query/Feedback


Your Email Id  
 
Subject 
 
Query/FeedbackCharacters remaining 250