Required library edition:
Required library file: dhtmlxscheduler_recurring.js
Returns all occurrences of a recurring event as array of objects with following properties:
For example, there is an recurring event (id: 22) which happens every 2 days from 14.00 till 15.00 on 12.10.2010 for 3 occurrences total, to get all occurrences of this event execute:
var dates = scheduler.getRecDates(22);
Dates variable will hold following array:
[ { start_date: Tue Oct 12 2010 14:00:00 GMT+0300 (E. Europe Daylight Time), end_date: Tue Oct 12 2010 15:00:00 GMT+0300 (E. Europe Daylight Time) }, { start_date: Tue Oct 14 2010 14:00:00 GMT+0300 (E. Europe Daylight Time), end_date: Tue Oct 14 2010 15:00:00 GMT+0300 (E. Europe Daylight Time) }, { start_date: Tue Oct 16 2010 14:00:00 GMT+0300 (E. Europe Daylight Time), end_date: Tue Oct 16 2010 15:00:00 GMT+0300 (E. Europe Daylight Time) } ]