Back to Fullcalendar

Event::setDates

_docs-v6/event-model/Event-setDates.md

latest587 B
Original Source

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

<div class='spec' markdown='1'> event.setDates( *start*, *end*, [ *options* ] ) </div>

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.