I'm trying to create a recurrence rule with the Google Calendar Api.
[JAVASCRIPT - Google Client Library]
var req = gapi.client.calendar.events.insert({
[...],
"recurrence": [
"RRULE:FREQ=WEEKLY;UNTIL="+date.toISOString()
],
[...]
});
req.execute();
The code above return 400 Bad request, because the recurrence rule is not correctly formatted.
I don't understand how to create a correct date format for the UNTIL
field.
I've tried to use a date object and use the ISO conversion but it doesn't work either.
Anyway a single creation for the event works correctly and also a repeat with a COUNT
field.