I have an array in javascript like this:
I tried to disable these dates using datepicker beforeShowday config like this:
beforeShowDay: function(date) {
var string = jQuery.datepicker.formatDate('dd/mm/yy', calendar.holidays);
return [ array.indexOf(string) == -1 ]
}
but the dates that i want to disable keeps appearing
