Input Type Date
Input type="date" represents a control. The user writes and sets a date in the input element using this control.
User can leave this input element blank. If a value needs to be given, a valid date must be written in the correct date format. A calendar is provided so that the user can select dates.
Example
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<form>
<label for="dob">Date of Birth</label>
<input type="date" id="dob">
<input type="submit" value="Submit">
</form>
</body>
</html>
