I have the following input field:
<input type="date" min="2020-11-04" max="2100-01-01"/>
This works perfectly fine to restrict dates from 2020-11-04 till 2100-01-01 in the date picker. However, it's still possible for the user to enter a date larger or smaller than the specified min and max by typing in the input field.
Is there a way I can prevent this client-side using HTML and/or with JavaScript, so the user can't type in a date larger or smaller than the specified min and max? I would like to keep the date picker that comes with <input type="date">, so I'm unsure if using a regex pattern would be the right way to go about this.