Alternatively use CreateDefaultRecurrenceByDate() to the date that the recurring pattern should start.
Repeat at standard interval
To repeat at a standard interval (daily, weekly, monthly, yearly), call SetPattern() with value [1-4]. See the reference section for details.This example creates a 10-minute daily coffee break at 14:00 starting August 1st.
Example: hourly reminders throughout the working day
NSRecurrenceInfo r;r.SetPattern(5);DateTime now;NSRecurrenceDate[] dates;for (Integer i = 0; i < 8; +++) { NSRecurrenceDate d; d.SetDate(now); d.SetDescription("Stretch and have some water"); dates.pushBack(d); d.addHour(1);}r.SetDates(dates);
Repeat at selected dates
You can also manually create a list of selected dates that don’t follow a pattern.