gets worktime calendar by id

Calendar getCalendar( [string|number calendarId] );
calendarIdstring|numberoptional, the id of the global calendar or "global"
Calendarcalendar object


var calendar = gantt.getCalendar(calendarId);


The returned object for the above example is a calendar object.

The default working time is the following:

  • Working days are from Monday to Friday.
  • Working hours are from 08:00 to 17:00.
See also
Change log

added in version 4.2

Back to top