Wartość domyślna daty wprowadzania
ReactJs
const toDay= new Date().toISOString().substring(0, 10);
//later...
<input type="date" defaultValue={toDay} />
Dias T
ReactJs
const toDay= new Date().toISOString().substring(0, 10);
//later...
<input type="date" defaultValue={toDay} />
var today = moment().format('YYYY-MM-DD');
$('#datePicker').val(today);