RFC 5545 Recurrence Schedule Calculator
Build a date-only RFC 5545 rule, inspect the dates it produces, and see exactly how weekend or entered holiday adjustments change the schedule. The result includes the EXDATE and RDATE values needed to represent those changes in an iCalendar recurrence set.
RFC 5545 recurrence ruleFREQ=WEEKLY;INTERVAL=1;COUNT=12;BYDAY=MO
- Raw occurrence schedule
- 20270104, 20270111, 20270118, 20270125, 20270201, 20270208, 20270215, 20270222, 20270301, 20270308, 20270315, 20270322
- Adjusted schedule
- 20270104, 20270111, 20270118, 20270125, 20270201, 20270208, 20270215, 20270222, 20270301, 20270308, 20270315, 20270322
- EXDATE values
- None
- RDATE values
- None
- Adjusted or skipped occurrences
- 0
- Date collisions
- 0
- Calendar export
- BEGIN:VCALENDAR VERSION:2.0 PRODID:-//Countfolk//RFC 5545 Recurrence Schedule//EN BEGIN:VEVENT UID:countfolk-recurrence-schedule@example.invalid DTSTAMP:20261120T000000Z DTSTART;VALUE=DATE:20270104 RRULE:FREQ=WEEKLY;INTERVAL=1;COUNT=12;BYDAY=MO END:VEVENT END:VCALENDAR
Raw and adjusted recurrence schedule
| Number | Raw occurrence | Adjusted occurrence |
|---|---|---|
| 1 | 20270104 (Monday) | 20270104 (Monday) |
| 2 | 20270111 (Monday) | 20270111 (Monday) |
| 3 | 20270118 (Monday) | 20270118 (Monday) |
| 4 | 20270125 (Monday) | 20270125 (Monday) |
| 5 | 20270201 (Monday) | 20270201 (Monday) |
| 6 | 20270208 (Monday) | 20270208 (Monday) |
| 7 | 20270215 (Monday) | 20270215 (Monday) |
| 8 | 20270222 (Monday) | 20270222 (Monday) |
| 9 | 20270301 (Monday) | 20270301 (Monday) |
| 10 | 20270308 (Monday) | 20270308 (Monday) |
| 11 | 20270315 (Monday) | 20270315 (Monday) |
| 12 | 20270322 (Monday) | 20270322 (Monday) |
The preview uses date-only Gregorian arithmetic. DTSTART remains the first raw occurrence even when it does not match a selected BYDAY or monthly selector.
Weekend and holiday adjustment is a planning convention applied after RFC 5545 recurrence expansion.
How to use this calculator
- Enter DTSTART as an eight-digit Gregorian date, then choose the frequency and interval.
- Select the weekday, numbered day, or weekday position used by the selected pattern.
- Set COUNT to the number of raw occurrences you want to inspect, up to 500.
- Choose a weekend and a working-day action, then enter up to three dates that should be treated as non-working.
- Compare the raw and adjusted schedules before copying the RRULE or calendar export.
How the recurrence schedule is calculated
The calculator first expands a date-only DTSTART and an RFC 5545-style RRULE, then applies any working-day convention. For a daily rule, candidate k is S + kI calendar days. For a weekly rule, the selected weekday is found in each I-week block anchored at DTSTART. For a monthly date, the candidate is day M in the month kI months after DTSTART; a date that does not exist, such as February 30, is omitted.
A monthly weekday rule collects the requested weekday in a month and takes position P, counted from the start when P is positive or from the end when it is negative. A yearly rule repeats DTSTART's month and day every I years, omitting February 29 in a non-leap year. The calendar uses the Gregorian leap-year rule: a year divisible by 4 is a leap year unless it is divisible by 100, except years divisible by 400.
The displayed rule has the form FREQ=f;INTERVAL=I;COUNT=C, with BYDAY, BYMONTHDAY, and BYSETPOS where the pattern needs them. DTSTART is kept as the first raw date even if it does not match a chosen selector, so that an unusual starting date remains visible rather than disappearing.
How weekend and holiday changes work
Let N be the selected weekend days plus the exception dates you enter. For a raw date d, keep returns d; skip returns no date; next chooses the first eligible date after d; previous chooses the last eligible date before it. Nearest chooses the eligible date with the smallest calendar distance and chooses the later date when both sides are equally close.
A skipped or moved raw date is written as EXDATE. A moved replacement is written as RDATE only when the base recurrence does not already produce that date. This makes the adjusted recurrence set (DTSTART union RRULE union RDATE) minus EXDATE. If multiple adjusted occurrences land on the same date, the tool reports a collision and also provides an explicit-event calendar export that preserves each final occurrence.
What changes the result and what it leaves out
The frequency, interval, selectors, and COUNT determine the raw dates. Weekend choice and the entered exceptions determine which dates need action; consecutive blocked dates can require a multi-day move. The calculator does not infer public holidays, regional closures, business hours, times, time zones, daylight-saving transitions, or an organization’s deadline convention. Calendar programs can also differ in how they display imported exceptions or duplicate events, so inspect an imported schedule before relying on it.
Worked example
Suppose DTSTART is 20270104, a Monday, with a weekly Monday rule, interval 1, and COUNT 4. The raw schedule is 20270104, 20270111, 20270118, and 20270125, and the rule is FREQ=WEEKLY;INTERVAL=1;COUNT=4;BYDAY=MO.
Now mark 20270111 as an exception, use Saturday–Sunday as the weekend, and choose Move forward. January 11 moves to Tuesday, January 12 because it is the first later date not in the weekend or exception set. The export lists 20270111 in EXDATE and 20270112 in RDATE; the other three Mondays remain unchanged.
Common questions
What is an RRULE?
An RRULE is the recurrence-rule property in RFC 5545 iCalendar data. It describes a repeating pattern with parts such as frequency, interval, count, weekday, and day of month. A DTSTART supplies the starting date or date-time for the event.
How do EXDATE and RDATE work together?
EXDATE removes a date that the base recurrence would otherwise create. RDATE adds a date outside that base rule. To move a recurring date, remove the original date with EXDATE and add the replacement with RDATE, while checking that the replacement is not already generated by the rule.
Why is February 30 omitted instead of moved to February 28?
RFC 5545 recurrence expansion omits invalid calendar dates rather than clamping them to a month end. A monthly rule for the 30th therefore has no February occurrence in a non-leap or leap year. Weekend and holiday movement is a separate planning rule that this calculator applies only after a valid raw date exists.
How do I create every other Friday?
Choose Every N weeks, select Friday, and enter 2 for the interval. Set DTSTART to the intended first occurrence when possible. The displayed rule will use WEEKLY, INTERVAL=2, and BYDAY=FR.
Why did two adjusted occurrences land on one date?
A forward, backward, or nearest adjustment can steer different raw dates to the same working day, particularly around weekends and a run of exceptions. The collision count identifies those duplicate final dates. Use the exact explicit-event export when each occurrence must remain separately represented.
Will the ICS export work in Google Calendar, Outlook, and Apple Calendar?
The export uses standard iCalendar properties for a date-only event, but each application decides how to present imports and duplicate dates. Import it into a test calendar first and compare the resulting dates with the schedule table. The explicit export is the safer option when adjustment collisions matter.