setEventEndDate

sets the event's end date

void setEventEndDate(string id,Date date);

Deprecated

instead of it, you can use

//to set new end date
scheduler.getEvent(id).end_date = new Date();
//to update visible event box after it
scheduler.updateEvent(id);
idstringthe event's id
dateDatethe new end date of the event

Example

var eventId = scheduler.addEvent({
    start_date: new Date(2013,1,10),
    end_date:   new Date(2013,1,13),
    text:   "Conference"
});
...
scheduler.getEvent(eventId).end_date = new Date(2013,1,15); 
scheduler.updateEvent(eventId);

See also
Back to top