.isTimeConflict()
Functionality
This method returns all calendar events that occur during a user-defined start/end datetime. Use this method with the SPCalendarPro object type, or the second parameter in the callback function.
Syntax
SPCalendarPro.prototype.isTimeConflict(dateTimeString1, dateTimeString2);
Parameters
Input two datetime strings to filter, i.e, "2019-03-01 12:00:00"
Examples
spcalpro.getCalendarEvents({
listName: "Appointments" // The name of the calendar or list. The only required field.
}).ready(function(data, obj) {
if (obj.error) console.error(obj.error);
console.table( obj.isTimeConflict("2019-03-01 12:00:00", "2019-03-02 12:00:00") );
});