DayPilot.Event.end

The end() method returns the current event end value or sets a new one.

Declaration

DayPilot.Event.end()
DayPilot.Event.end(newEnd)

The new value is applied when you call DayPilot.Scheduler.events.update().

Parameters

Notes

Call the method without parameters to read the current end value. Call it with a DayPilot.Date value to update the event object before saving it back to the control.

Example

const oldEnd = e.end();
e.end(new DayPilot.Date("2015-10-01T00:00:00"));

See Also

DayPilot.Event Class

Availability

Availability of this API item in DayPilot editions:

LitePro
DayPilot for JavaScript