Part of the Business ecosystem · 7 projects
Business Calendar gives 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, nearest-weekday holidays, 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: Beta. 1.0.0-beta1 is the first release. The public API is meant to stay stable through 1.0.0, so please report anything that gets in the way of your use case before the stable release.
This module is developed with AI assistance. The maintainer reviews and tests every release before publishing it.
Features
Calendars and holiday rules
- A calendar configuration entity with a label, an IANA time zone, its own weekend days (Saturday and Sunday, Friday and Saturday, or any other set), opening hours for each weekday (closed days allowed), holiday rules and one-off closures.
- Holiday rules: 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); a given weekday on or before, on or after, or nearest to a date; and one-off dated closures. Any rule can have a first and a last year.
- A weekend observance policy for each rule: none, the nearest weekday, 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 calculator service with
isBusinessDay(),isOpenAt(),nextBusinessDay(),previousBusinessDay(),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. Spans and lead times have documented limits, so a mistyped value cannot make a calculation run away.
- An event that lets other modules add closures, for example holidays announced each year.
Presets and administration
- Presets to import and then edit: US federal holidays, UK bank holidays for England and Wales, and Canadian federal statutory holidays, checked date for date against the official published lists.
- 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.
Requirements
- Drupal 11.3 or later, or Drupal 12.
- PHP 8.3 or later.
- No other modules. The test suite runs on MySQL/MariaDB, PostgreSQL and SQLite.
Installation
Install with Composer, then enable the module:
composer require 'drupal/business_calendar:^1.0@beta' drush en business_calendar
Configuration and permissions
Calendars are at Administration » Configuration » Regional and language » Business calendars (/admin/config/regional/business-calendar). Import a preset from there, or add a calendar and its rules by hand.
- Administer business calendars (not restricted): create, edit and delete business calendars, their opening hours and holidays. Dates computed from them, such as delivery promises, change at once.
Known limitations
Lunar, Islamic and Hindu calendars and Japan's equinox holidays cannot be expressed as rules. Add them as one-off closures, or from code through the alter event; the README explains how.
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 and ask for features in the issue queue. Each release has 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; development and issues stay on drupal.org.
Maintainer
Created and maintained by deadnorth (Dead North).
Ask your assistant about Business Calendar
Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works
Depends on
Dependencies of the latest stable release
No dependencies recorded for this project.
Required by
Tracked projects that depend on this one
No tracked projects depend on this one yet.
More in the Business ecosystem
Most installed first
Activity
Releases
| Version | Type | Core | PHP | Release date | |
|---|---|---|---|---|---|
| 1.0.0-beta1 | Pre-release | 11 | PHP >=8.3 | Nov 26, 2026 |