This project is not covered by Drupal’s security advisory policy.
Business Calendar will give any Drupal site business-day and holiday calendars with real recurrence rules: fixed dates, the nth or last weekday of a month, days counted from Easter, and weekend observance. Other modules can then ask whether a day is a business day, add business days to a date, or list a year's holidays.
Status: No release yet. The module is under active development; the first beta follows once its automated test suite and an independent review pass.
This module is developed with AI assistance. The maintainer reviews and tests every release before publishing it.
Planned for 1.0
None of this is released yet. The first release will provide:
Calendars and holiday rules
- A calendar configuration entity with a label, an IANA time zone, opening hours for each weekday (closed days allowed), holiday rules and one-off closures.
- Holiday rules of five types: a fixed date (25 December); the nth weekday of a month (the fourth Thursday of November); the last weekday of a month (the last Monday of May); an offset from Easter Sunday (Good Friday is −2, Easter Monday +1, Whit Monday +50); and a one-off dated closure. Any rule can have a first and a last year.
- A weekend observance policy for each rule: none, the nearest weekday (Saturday moves to Friday, Sunday to Monday), or always the next weekday. A substitute day that lands on another holiday moves on again, and with the nearest-weekday policy New Year's Day on a Saturday is observed on 31 December of the year before.
An API for other modules
- A service with
isBusinessDay(),isOpenAt(),nextBusinessDay(),addBusinessDays()(negative counts too),businessDaysBetween(),holidaysForYear()(each holiday's name, actual date and observed date) andnextOpening(). - Results computed from the rules rather than stored, cached per calendar and year, and tagged with the calendar's cache tags, so they are recalculated when the calendar changes.
Presets and administration
- Presets to import and then edit: US federal holidays, UK bank holidays for England and Wales, and Canadian federal statutory holidays.
- A list of calendars, an add and edit form with a table of rules, and a live preview of the holidays computed for the next 12 months.
- Drush commands:
business-calendar:holidays <calendar> <year>lists a year's holidays, andbusiness-calendar:check <calendar> <date>checks one date against a calendar.
The test suite will check Easter against known dates across several centuries, each preset against officially published dates for 2025 to 2028, daylight-saving changes in America/Chicago and Europe/London, year boundaries, and observance collisions.
Requirements
Planned for the first release:
- Drupal 11.3 or later, or Drupal 12.
- PHP 8.3 or later.
- No other modules.
Installation
Installation instructions arrive with the first release. For the first beta, the commands will be:
composer require 'drupal/business_calendar:^1.0@beta' drush en business_calendar
Configuration and permissions
Not final yet. This section will list each settings page and each permission, by its real label, with the first release.
Similar projects
Checked on drupal.org in November 2026.
- Office Hours is a widely used field for a location's weekly opening hours, with exceptions for particular dates. Choose it to show opening hours on a page. It has no holiday recurrence rules and no business-day arithmetic.
- Recurring Dates Field stores recurring dates using iCalendar RRULE rules. Choose it for recurring events. It is a building block, with no business-day or weekend-observance logic.
- Calculate Working Days is a small helper for working-day date arithmetic. Its latest release (2.0.3) declares Drupal 8.8 to 10, not 11.
- Work Calendar defines weekday working patterns, but has only Drupal 7 development releases.
Support and maintenance
Report bugs, ask for features and comment on the planned scope in the issue queue. Each release will have notes describing what changed.
This project is not covered by Drupal's security advisory policy. Until it is, security issues are handled in the public issue queue and fixed in ordinary releases.
A read-only mirror is on GitHub at DanePete/drupal-business-calendar. It will mirror the drupal.org repository once code is published there; development and issues stay on drupal.org.
Maintainer
Created and maintained by deadnorth (Dead North).
Project information
- Project categories: Administration tools, Developer tools
- Created by deadnorth on , updated
This project is not covered by the security advisory policy.
Use at your own risk! It may have publicly disclosed vulnerabilities.
