I am trying to set a default date to my input box with type = date
<input name="date" class="dateToday form-control" type="date" required>
I tried this:
$('.dateToday').val(new Date().toISOString().slice(0, 10));
But this is setting the default value to tomorrows date instead of today.
Is there a way to set date more accurately using system time?