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