<form>
Birthday:
<input type="date" name="bday">
</form>
//you can also use the min and max attributes to add restrictions to dates
<form>
Enter a date before 1980-01-01:
<input type="date" name="bday" max="1979-12-31"><br>
Enter a date after 2000-01-01:
<input type="date" name="bday" min="2000-01-02"><br>
</form>
Is used for input fields that should contain a date.