Disables certain dates of each week, month or year.
Parameters:
myCalendar.disableDays("month",[1,2,5,6,19]); // disables 1st, 2nd, 5th, 6th and 19th day of each month
Description:
Different modes require different date formats:
myCalendar.disableDays("week", 1); // disables every monday of each week in the calendar //or myCalendar.disableDays("week", [1, 2]); // disables every monday and tuesday of each week in the calendar
myCalendar.disableDays("month", 1); // disables 1st day of each month in the calendar //or myCalendar.disableDays("month", [1, 2]); // disables 1st and 2nd day of each month in the calendar
myCalendar.disableDays("year", "2011-01-01");// disables 1st January of each year in the calendar //or myCalendar.disableDays("year", ["2011-01-01", "2011-01-02"]); // disables 1st, 2nd January of each year in the calendar
See also: