returns a collection of events which occur during the specified period

array getEvents( [Date from,Date to] );
fromDatethe start date of the period
toDatethe end date of the period
arrayan array of event objects


var evs = scheduler.getEvents(new Date(2013,1,10),new Date(2013,2,10)); 
for (var i=0; i<evs.length; i++){
// or
var evs = scheduler.getEvents();// will return all events

Related samples


If support for recurring events is activated, the "from-to" parameters are required for the getEvents method.

var today = Date());
var nextWeek =, 1, "week");
var events = scheduler.getEvents(today, nextWeek);

Otherwise, the getEvents() method will return an empty array because the recurring extension allows setting endless sequences of events while the method can't return an endless array.

If recurring events are disabled, the method will work correctly as with parameters as without them. But in case you don't specify any parameters, the method will return all events.

Back to top