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
newEnd(DayPilot.Date) - new event end value.
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
Availability
Availability of this API item in DayPilot editions:
| Product | Lite | Pro |
|---|---|---|
| DayPilot for JavaScript |
DayPilot