Premium support for our pure JavaScript UI components


Post by rahulranjan »

Hi

How can we get Finish Date based on Start Date ,Duration and considering assigned calendar of task.


Post by alex.l »

Please check docs here: https://bryntum.com/docs/gantt/engine/classes/_lib_engine_quark_model_abstractcalendarmixin_.abstractcalendarmixin.html#calculateenddate

task.calendar.calculateEndDate(startDate, duration);

I see we mentioned it in your previous post here: viewtopic.php?f=51&t=16662&p=82872#p82872

As we discussed in that topic, check https://www.bryntum.com/docs/gantt/#Gantt/model/TaskModel#field-calendar property to get calendar assigned on the task (if any) or use a general https://www.bryntum.com/docs/gantt/#Gantt/model/ProjectModel#field-calendar

All the best,
Alex


Post Reply