HTML:- Date picker set value

<!DOCTYPE html> 
<html> 
 
<head> 
 <meta name="viewport" content="width=device-width, initial-scale=1"> 
 <title>Date Picker Default Value</title> 
</head> 
 
<body> 
 
 <!--Value should in YYYY-MM-DD format--> 
 <input type="date" value="2019-04-30" /> 
 
</body> 
 
</html>



Definition:-  

Date Picker with default value


  • We can specify the default date by using value attribute.
  • The date value should be in 'yyyy-mm-dd' format.
HTML:- Date picker set value HTML:- Date picker set value Reviewed by Network security on April 30, 2019 Rating: 5

No comments:

Useful Information

Powered by Blogger.