P粉5217482112023-09-02 10:07:51
I recommend using the "date" type. It has a lot of features built into it. You can also set minimum and maximum values. You can find more information here: https://developer.mozilla.org/ru/docs/Web/HTML/Element/Input/date
Example:
<input type="date" value="2018-07-22" min="2018-01-01" max="2018-12-31">