make a date field required in html code example
Example: how to set a date for type date inpt
<input type="date" id="start" name="trip-start" value="2018-07-22">
<input type="date" id="start" name="trip-start" value="2018-07-22">