Languages
[Edit]
EN

HTML - date input

3 points
Created by:
DrJoystick
615

In this article, we would like to show you how to create date input in HTML.

Quick solution:

// ONLINE-RUNNER:browser;

<input type="date" name="input-name" />

 

Practical example

In this example, input date is limited by min and max value.

// ONLINE-RUNNER:browser;

<!doctype html>
<html>
<body>
  <input type="date" 
         name="event-date"
         value="2021-02-18"
         min="2021-01-01"
         max="2021-03-01" />
</body>
</html>

References

Alternative titles

  1. HTML - input type date
Donate to Dirask
Our content is created by volunteers - like Wikipedia. If you think, the things we do are good, donate us. Thanks!
Join to our subscribers to be up to date with content, news and offers.
Native Advertising
🚀
Get your tech brand or product in front of software developers.
For more information Contact us
Dirask - we help you to
solve coding problems.
Ask question.

❤️💻 🙂

Join