Basically i have 2 inputs that are both of type date. I don't want the user to able to submit the form if the check-in has a date after the check-out. For example if the check in is 11/02/19 and the check out is 10/02/19 then the user won't be able to submit the form. I don't want to give the user this option.
<div id="dataCheckIn">
<h3>Check-in:</h3>
<input type="date" formControlName="checkInReserva" required>
</div>
<div id="dataCheckOut">
<h3>Check-out:</h3>
<input type="date" formControlName="checkOutReserva" required>
</div>