Anyone here how do I display today's date in jquery datepicker? Tried these but it doesn't display today's date in datepicker.
$('#from').datepicker({
defaultDate: new Date(),
dateFormat: 'yy-mm-dd',
onSelect: function () {
table.draw();
},
changeMonth: true,
changeYear: true
});
$('#to').datepicker({
defaultDate: new Date(),
dateFormat: 'yy-mm-dd',
onSelect: function () {
table.draw();
},
changeMonth: true,
changeYear: true
});