Looking at this answer, it is shown how to include EXDATE in the string format option in FullCalendar.
But FullCalendar provides a convenient alternative to the long string. They allow you to use an object instead. Unfortunately their documentation doesn't really cover anything beyond that:
The rrule property accepts whatever the rrule lib accepts for a new RRule. See the docs. You can specify a string or an object.
The events we use are pretty heavy already and I would love to avoid adding additional complexity that would involve me writing some kind of mapper to generate this string.
I would like to know how to be able to exclude a list a of dates from a recurrence rule using the object format.
I've tried providing a date object of the specific date. I've tried providing an ISO string. I've tried including them in an array.
Update
This is the latest iteration that I'm trying:
...
const rruleSet = new RRuleSet();
rruleSet.rrule(new RRule(options));
// Repeat every day except on Nov 22, 2019
rruleSet.exdate(new Date(Date.UTC(2019, 10, 22)));
event.duration = {
seconds: event.event_length,
};
event.rrule = rruleSet.toString();
...
This renders the recurring dates (time is a little off) but the date that I'm trying to exclude still renders.