The partEnd() method returns the end of the currently visible event part as a DayPilot.Date value.
DayPilot.Event.partEnd()This method has no parameters.
There are two cases when the visible event box does not represent the full event duration:
The overnight events will be shown as two or more event parts, each in one day.
If non-business hours are hidden and the event starts or ends in the non-business hours.
In these cases, partEnd() can return a different value than end().
const visibleEnd = e.partEnd();