Skip to content

Instantly share code, notes, and snippets.

beforeShowDay: function(date) {
var enabled = disabledDates.every(function(disabledDate){
var from = new Date(disabledDate['from']);
var to = new Date(disabledDate['to']);
from.setHours(0);
from.setMinutes(0);
from.setSeconds(0);
to.setHours(23);