I want to enable only the last Friday in each month in my datepicker. In another example I found a code-snippet but it doesn't work for me. Maybe my picker uses other attribute names?
How I can do this?
var monthDays = new Date(date.getFullYear(),date.getMonth() + 1,0).getDate();
var day = date.getDay();
return [( (day==5 && date.getDate() > monthDays - 7 )), ''];
}