Some HTML <input>
tags will allow for min
and max
values like the numeric input type. I was wondering if there's also such an attribute for the datetime-local
input type where it can be set to a min
value of the current 'today'
date?
Is it possible in HTML to set a selection limit for datetime-local
input to only let the user be able to only select dates ranging from 'today'
to future dates while preventing the user from selecting past dates.
<form>
<input type="datetime-local">
</form>