DayPilot.Event.partEnd

The partEnd() method returns the end of the currently visible event part as a DayPilot.Date value.

Declaration

DayPilot.Event.partEnd()

Parameters

This method has no parameters.

Notes

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().

Example

const visibleEnd = e.partEnd();

See Also

DayPilot.Event Class

Availability

Availability of this API item in DayPilot editions:

LitePro
DayPilot for JavaScript