today i can calculate the endDate by using the generator function 'calculateProjectedXDateWithDuration' when i pass in the startDate and duration of the event.
But how can i calculate the end date, based on another calendar?
(for example: event is assigned to calendar 'twoShifts' but i want to calculate the end date based on calendar 'threeShifts'
Hi, try to call in calendar you need
const endDate = gantt.project.calendarManagerStore.getById('general').calculateEndDate(startDate, duration);
Thanks for this great idea!
But i am facing this issue:
So my input is my startDate as date and my duration as number.
But the output is exactly the same as my start Date or the beginning of the working interval.
Any idea what the reason could be?
const endDate = calendarStore
Yes, I actually forgot to mention that duration must be in milliseconds. Sorry about that.