VOOZH about

URL: https://www.geeksforgeeks.org/html/html-input-typedate/

⇱ HTML <input type="date"> - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

HTML <input type="date">

Last Updated : 25 May, 2026

The HTML <input type="date"> element is used to create a date input field in a form. It allows users to select a date using a calendar interface.

  • Used to accept date input from users.
  • Created using <input type="date"> inside a form.
  • Supports attributes like min, max, value, and required.

Syntax:

<input type="date">

Example: In this example, the HTML <input type="date"> displays a date input field.

Comment
Article Tags: