Im my view, pikaday is not the best!!!
But if you need to set today do the following…
1 2 3 4 5 6 7 8 9 10 11 |
var picker = new Pikaday( { field: document.getElementById('datepicker'), format : "MM/DD/YYYY", firstDay: 1, minDate: new Date('2000-01-01'), maxDate: new Date(), yearRange: [2000,2020] }); |