Calendar disable days

Hello,
i need to disable certain days, from my MYSQL database. I recieve the days on an array, but how can i disable these days?

calendarDateTime = app.calendar.create({
inputEl: ‘#mycal’,
disabled: {
//disable
},
dateFormat: { month: ‘numeric’, day: ‘numeric’},
});

You may apply a function to disabled, e.g;

disabled : function(date) {
return doCompareDateWithYourValues(date)

}

According to the docs you can specify a Date Range to disable on the calendar.

var calendar = app.calendar.create({
    ...
    // Disabled 10th November 2015 and 11th November 2015:
    disabled: [new Date(2015, 10, 10), new Date(2015, 10, 11)],
    ...
});

So the easiest solution would be to transform your array before your use app.calendar.create. What values does your DB generate for date values?