I believe the issue occurs because exdate needs to be an array of date strings without the additional quotes you put around them. Var e has double quotes around the variable and single quotes around each date. Is it possible for you to create variable like this: var e = ['2024-11-05T13:30:00', '2024-11-07T13:30:00']; ?