0 / 60 seg.

If you want to verify in JavaScript that a date is after "2023-01-01", what would be the correct code?

<input type="date" id="dateField">
const dateValue = new Date(document.getElementById('dateField').value);
const minDate = new Date('2023-01-01');