setEventStartDate

sets the event's start date

void setEventStartDate(string id,Date date);

Deprecated

instead of it, you can use

//to set new end date
scheduler.getEvent(id).start_date = new Date();
//to update visible event box after it
scheduler.updateEvent(id);
idstringthe event's id
dateDatethe new start 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).start_date = new Date(2013,1,09);
scheduler.updateEvent(eventId);

See also
Back to top