VOOZH about

URL: https://www.geeksforgeeks.org/html/which-input-type-is-used-to-choose-the-date-in-html/

⇱ Which input type is used to choose the date in HTML ? - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

Which input type is used to choose the date in HTML ?

Last Updated : 23 Jul, 2025

In this article, we will learn how to choose the date from the calendar on the webpage. As we know that HTML 5 introduced many inputs types for the better functionality of the form. 

The <input type="date"> input type is used to choose the date in HTML. It is used to develop input fields that tend the user enters a date, or use a textbox that validates the input or you can also choose a date from a special date picker interface. 

Syntax

<input type = "date"> 

Example:  Below HTML Code illustrates how to choose a date in HTML Form. 

Output:

👁 Image
Comment
Article Tags: