.isSameDate()

Functionality

This method returns all calendar events that begin and end on the same date specified by a user-provided datetime. Use this method with the SPCalendarPro object type, or the second parameter in the callback function.

Syntax

SPCalendarPro.prototype.isSameDate(dateTimeString1, dateTimeString2);

Parameters

Input two datetime strings to filter, i.e, "2019-03-01 12:00:00"

Example

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.isSameDate("2019-03-01 12:00:00", "2019-03-02 12:00:00") );
});