I want to set background-color for cell with date 2014-10-22. I find a solution:
date = new Date(y,m,d);
date = $.fullCalendar.formatDate(date,
Try this:
var $calendar = $('#calendar').fullCalendar({
header: {
left: 'prev,next today',
center: 'title',
right: 'month,basicWeek,basicDay'
},
defaultView: 'month',
dayRender: function (date, cell) {
date = new Date();
date = $.fullCalendar.formatDate(date, 'yyyy-MM-dd');
$('.fc-day[data-date="'+ date +'"]').addClass('cellBg');
}
});
see Fiddle