Recurrence - Monthly (examples)
Interval | Range |
---|---|
An appointment occurs on the 23th day of each month. Ten occurrences are specified.
RRULE:FREQ=MONTHLY;COUNT=10;BYMONTHDAY=23
An appointment occurs on the last Wednesday of the month, every 2 months. The occurrence chain has no end date.
RRULE:FREQ=MONTHLY;INTERVAL=2;BYDAY=WE;BYSETPOS=-1
An appointment occurs on the first Monday of the month every 3 months. The duration is one year.
RRULE:FREQ=MONTHLY;UNTIL=20171103T080000Z;INTERVAL=3;BYDAY=MO;BYSETPOS=1
apt.RecurrenceInfo.Type = RecurrenceType.Monthly; apt.RecurrenceInfo.Periodicity = 3; apt.RecurrenceInfo.Start = apt.Start; apt.RecurrenceInfo.WeekOfMonth = WeekOfMonth.First; apt.RecurrenceInfo.WeekDays = WeekDays.Monday; apt.RecurrenceInfo.Range = RecurrenceRange.EndByDate; apt.RecurrenceInfo.End = apt.RecurrenceInfo.Start.AddYears(1);
See Also