In date picker I should be able to select only Sundays and last day of the month. Rest of days should be greyed out.How can I achieve this?
apex.items.enddate.dayFormatter = function (pDateISOString){
var day = apex.date.parse(pDateISOString, "YYYY-MM-DD").getDay();
return {
disabled : ! (day == 0 )
};
};
apex.items.enddate.refresh();
Using above code, I am able to enable Only all the sundays not able to enable last day of the month.