Page 1 of 1

[ANGULAR] Finish Date

Posted: Wed Mar 31, 2021 2:36 pm
by rahulranjan

Hi

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


Re: [ANGULAR] Finish Date

Posted: Wed Mar 31, 2021 2:52 pm
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