Walidacja daty wejścia HTML

<!--User is provided with a date picker allowing him to enter a valid date-->

<label for="start">Start date:</label>
<input type="date" id="start" name="trip-start"
       value="2022-07-22"
       min="2022-01-01" max="2022-12-31">
Wissam