What is wrong with my recurrence data string?

460 Views Asked by At

I'm trying to create recurrence rule to export my timetable to Google Calendar, but I'm doing something wrong.

The string is the following:

'DTSTART;TZID=Europe/London:20100822T080000\r\nRRULE:FREQ=WEEKLY;COUNT=5;BYDAY=Mo,Tu,We,Th,Fr;UNTIL=20100827T164500Z\r\nDTEND;TZID=Europe/London:20100822T180000\r\n'

It is working fine if you will take off the part with UNTIL (this part which I hard coded for test: ;UNTIL=20100827T164500Z) but with UNTIL there it's not working(and I need that UNTIL to be there).

I was looking to the document RFC2445 and I don't find what can be wrong with until.

Thanks for any help!

1

There are 1 best solutions below

0
On BEST ANSWER

COUNT and UNTIL are mutually exclusive. See Recurrence Rule definition.