getWorkHours

returns the working hours of the specified date

array getWorkHours(Date date);
dateDatea date to check
arraya working period of the date

Example

gantt.config.work_time = true;
gantt.init("gantt_here");
 
gantt.getWorkHours(new Date(2013,03,30))// -> [8, 17]

See also
Back to top