I was using a fullcalendar plugin for my booking system. How can I disable the day and time in the calendar so that the user cannot book an event in that certain day and time? The code I've tried so far is below, but it currently doesn't work.
disableDate:function(date)
{
if(options.disableDates) {
var disabled_dates = options.disableDates
var string_date = formatDate(date,"MM-dd-yyyy")
if (disabled_dates.indexOf(string_date) > -1 )
{
return true
}
}
return false
}