Free Support Forum - aspose.com

RRULE question

On your online demo of iCalendar, the following statement produces an error.

Can you please point out my mistake?



DTSTART;TZID=US-Eastern:20040101
RRULE:FREQ=MONTHLY;INTERVAL=2;BYDAY=-1SU;COUNT=2

It does not produce an error and calculates the dates okay, but it has few visual issues when you paste it into Task Pattern and click Apply Pattern to Controls:

1. Every x years is not updated, should become every x months.
2. BYDAY is not added to the By list.
3. -1SU is not added to the By list and it is not possible to enter negative numbers there at the moment.

Please note that all of the above are just demo project issues and do not affect the component itself.

Also, you must remember that the start date is counted as the first occurrence so I made COUNT=3 to get this result:


01/01/2004 00:00:00 Thursday Go to gym <a style=“COLOR: #000066” href=__doPostBack(‘occurrenceGrid$_ctl3$_ctl0’,’’)">Edit <a style=“COLOR: #000066” href=__doPostBack(‘occurrenceGrid$_ctl3$_ctl1’,’’)">Delete
25/01/2004 00:00:00 Sunday Go to gym <a style=“COLOR: #000066” href=__doPostBack(‘occurrenceGrid$_ctl4$_ctl0’,’’)">Edit <a style=“COLOR: #000066” href=__doPostBack(‘occurrenceGrid$_ctl4$_ctl1’,’’)">Delete
28/03/2004 00:00:00 Sunday Go to gym <a style=“COLOR: #000066” href=__doPostBack(‘occurrenceGrid$_ctl5$_ctl0’,’’)">Edit <a style=“COLOR: #000066” href=__doPostBack(‘occurrenceGrid$_ctl5$_ctl1’,’’)">Delete