BlogComparisons · November 13, 2026 · 6 min read

Contact Form 7 Scheduling: rrule.js vs python-dateutil vs iCal4j vs ical.js vs libical

Compare five recurrence libraries for Contact Form 7 scheduling by calendar format, exceptions, time zones and runtime.

A Contact Form 7 scheduling form can collect a preferred day or start time. A separate service must decide which future dates that preference implies. If a customer requests every other Tuesday and cancels one occurrence, adding fourteen days to a UTC timestamp will not represent the whole agreement. These five libraries help with recurrence calculation or calendar data in a custom integration.

Five calendar tiles circle repeating arrows, with one date marked by a raised square
Generated conceptual illustration; not a product screenshot or measured result.
Library Runtime License Useful starting point
rrule.js JavaScript BSD-style notices Rule expansion and a bounded preview
python-dateutil Python BSD 3-Clause and Apache 2.0 notices Generate dates in a Python service
iCal4j Java BSD 3-Clause Read and produce calendar objects on the JVM
ical.js JavaScript MPL 2.0 Work with iCalendar components in a web stack
libical C and supported bindings MPL 2.0 or LGPL 2.1 Native calendar processing

rrule.js

rrule.js can build recurrence rules and rule sets in JavaScript, combine inclusion and exclusion dates and return occurrences for a range. Use it when your integration already stores the schedule as a structured rule and the interface needs to preview the next few dates. The preview can omit an excluded date without adding or changing an appointment. The project’s license file contains BSD-style terms and notices for the ported code.

Strength: the rule API fits a JavaScript or TypeScript stack and avoids pulling in a full calendar object model just for expansion. Limitation: the project documents differences from the calendar RFC and special date interpretation for floating or zoned values. Test display and serialization in both your server zone and the customer zone. A result printed with a zero offset does not, by itself, establish that the intended local time has been converted to the correct instant.

python-dateutil

The python-dateutil recurrence module provides rules, rule sets, parsing and bounded queries. In a Python worker, it can turn approved intake choices into a short list of candidate dates. Keep the time zone in the schedule record and carry an explicit date window into the expansion call. The project’s license note explains the dual terms for newer contributions and BSD 3-Clause terms for earlier code that was not relicensed.

Strength: it fits a Python workflow that already handles datetimes and only needs recurrence calculations. Limitation: a rule set does not handle the entire lifecycle of a calendar invitation. If a downstream calendar sends a moved occurrence or cancellation, parse and reconcile the event metadata separately. Include a test for a monthly rule on the 31st; months without that date do not gain a replacement occurrence unless your own business rules define one.

iCal4j

iCal4j provides a parser and object model for iCalendar in Java. Consider it when a JVM service needs to receive or produce structured calendar events, not just produce a series of dates. For example, the scheduler can keep a recurring calendar event with its UID and represent an edited occurrence separately, then ask the integration to reconcile that change with its stored inquiry.

Strength: the calendar object model fits systems where component properties need to survive parsing and serialization. Limitation: the Java runtime and release-specific dependencies add deployment work for a WordPress-only team. Confirm the required Java version and validate an actual calendar round trip with the destination service. A document that parses without errors may still produce the wrong display if the downstream system interprets floating or all-day values differently.

ical.js

ical.js parses iCalendar and related data formats in JavaScript. Its component model is useful if a browser or Node application already reads an ICS event and needs to inspect the recurrence information. A review panel can show a proposed series and one exception from the same calendar input, while leaving writes to the scheduling service.

Strength: it gives a JavaScript stack access to event structure as well as recurrence. Limitation: you still need to decide which time zone definitions the workflow will load, how to handle missing definitions and what happens when the same event is imported twice. Compare the rendering with your production calendar’s interpretation of a test event across a time change. If you only hold a rule and a start time, a rule-focused library may be easier to maintain.

libical

libical is a native implementation of iCalendar protocols and data. It fits an existing C service or a platform with a maintained binding that exposes the calendar operations you need. An integration can use its calendar support to process recurrence data close to an existing native scheduling component. The upstream project permits use under MPL 2.0 or LGPL 2.1.

Strength: an established native service can use a calendar library in its existing toolchain without adding a separate JavaScript or Python service for recurrence alone. Limitation: building or packaging native dependencies and matching the binding to the underlying version can cost more than the calculation itself. Confirm packaging on the target system and make sure the binding exposes the exception and time zone operations you rely on. There is no need to assume that the library’s full C interface is available in every binding.

Use one acceptance fixture for all five options

Define a two-month preview of every other Tuesday at 09:00 in the service’s named local zone. Include an excluded date, an extra date and a fixture across a daylight saving transition. For a workflow that imports full calendar events, add a moved occurrence identified by its original recurrence identity. Check the local display and UTC instant separately. Under RFC 5545, exclusions take precedence over inclusions and duplicate instances are considered once. Where applicable, check that a moved instance changes one occurrence rather than creating a second booking. The appointment time guide explains how to review ambiguous or skipped wall-clock times.

Record a maximum expansion window and number of results, validate choices at intake, and keep booking, availability and reminders separate from recurrence generation. Start with rrule.js or python-dateutil for structured rules in their respective runtimes. Choose iCal4j, ical.js or libical when you already exchange calendar objects and their runtime matches your system. All five are open source with no purchase required for upstream library use; deployment and maintenance still take work. This is a comparison of documented capabilities, with no hands-on performance rankings or native CF7 integration claims.

Keep three facts in the record: what the customer requested, the recurrence rule your team approved, and the bookings actually confirmed downstream. Recomputing a preview after a rule or timezone update should never silently rewrite a booking already communicated to a customer. Store the calendar event identity and the original occurrence key when the destination supplies them. When synchronizing a change, compare one occurrence before and after the edit and verify that a cancellation changes its state without removing the rest of the series.

Give reviewers a second fixture for an all-day event and a third for an event without a timezone. Preserve a date-only value as a date rather than interpreting local midnight as the customer’s requested time. For floating times, agree which party’s local clock gives the value meaning. If the product requirements cannot answer that question, ask for a timezone during intake or send the series for manual review. Never let the developer laptop’s configured timezone decide on behalf of the customer.

If you want a hosted booking workflow instead of building a scheduler, compare the scheduling platforms. For submission trends in WordPress, try Svetlik Analytics for Contact Form 7 and track confirmed appointments in the scheduling system.