[wd_asp elements=’search’ ratio=’100%’ id=1]

pickaday – Set today

5th August 2016

Javascript

javascript category codehaven

Im my view, pikaday is not the best!!!

But if you need to set today do the following…


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]
});