html input date set default value today code example
Example: html input date set default value today
var today = moment().format('YYYY-MM-DD');
$('#datePicker').val(today);
var today = moment().format('YYYY-MM-DD');
$('#datePicker').val(today);