lundi 25 mai 2015

add +1 for month indexing in pickadate

i want to disable all dates excepting from range of start_date and end_date. and 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. its disable all dates remaining current date. please help me . i want to disable that dates only who is not coming in range of start_date and end_date values.

Aucun commentaire:

Enregistrer un commentaire