I want to disable all dates excepting from range of start_date and end_date for eg : date start from 26/05/2015 to 29/05/2015 so all the dates before start and after end get disable. For this I am using pickadate and pickadate month indexing start from zero.
$('.datepicker2').pickadate({
format: 'dd/md/yyyy',
selectMonths: true,
selectYears: 25,
min: [$("#leave_start_date").val().split("/").map(Number).reverse()],
max: [$("#leave_end_date").val().split("/").map(Number).reverse()]
});
but it is not working. It disable all dates remaining current date. Please guide me how to solve this. I want to disable that dates only who is not coming in range of start_date and end_date values.