I want to select today date in input type="date"
<input id="date" type="date" name="date" class="form-control" required>
Join Stack Overflow to learn, share knowledge, and build your career.
I want to select today date in input type="date"
<input id="date" type="date" name="date" class="form-control" required>
Pure JavaScript-version of filling the date of today in a html5-input of type date:
let dateInput = document.getElementById('date');
dateInput.valueAsDate = new Date();
<input id="date" type="date" name="date" class="form-control" required>
new Date()
– Ange Loron May 29 '19 at 11:41