How can I set background colors for specific days? While experimenting, I discovered this method:
$('.fc-day15').css('backgroundColor','black');
The only issue is that the colors appear on the 16th day in the calendar grid, not on the actual day. If there was a way to determine the offset from the start of the week to the first day of the month, I could adjust accordingly.
UPDATED APPROACH:
I have come up with a solution that seems to work:
var TheActualDay=15;
var DayOffset=($('#calendar').fullCalendar('getView').start.getTime()-$('#calendar').fullCalendar('getView').visStart.getTime())/(1000 * 60 * 60 * 24);
var DayNumber=(TheActualDay-1)+DayOffset;
$('.fc-day'+DayNumber.toString()).css('backgroundColor','black');
However, I am wondering if there is a more concise way to achieve the same result?