How to use input type field with date field in HTML?

HTMLWeb DevelopmentFront End Technology

The <input type="date"> is for input fields with date. It allows to easily entering the date with day, month and year. You can get user input for birthday date, registration date, etc.

A datepicker will be visible when you will try to add a date in the input type.

Note − The input type date is not supported by Firefox and Internet Explorer. It works on Google Chrome.


You can try to run the following code to use input type field with date field in HTML. Here, we’re entering the date of birth.

<!DOCTYPE html>
      <title>HTML input date</title>

      <form action = "" method = "get">
         Enter Registration Date:<br>
         <input type="date" name="birthday"><br>
         <input type="submit" value="Submit">
Published on 23-Jan-2018 08:57:00