html input date default today
<!-- HTML -->
<input type="date" class="today">
<script>
// JQuery
$(document).ready( function() {
$('.today').val(getToday());
});
function getToday(){
const local = new Date();
local.setMinutes(local.getMinutes() - local.getTimezoneOffset());
return local.toJSON().slice(0,10);
}
</script>