edit doc

Event::setDates

Sets an event’s start date, end date, and allDay properties at the same time.

event.setDates( start, end, [ options ] )

start and end are parameters that must parse into a Date Objects. end can be null, in which case the end date will be cleared.

options is an optional plain object that can have the following property:

  • allDaytrue or false. will modify this event’s allDay property.

If there are other events that share the same groupId, those events’ dates will be similarly modified.