Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: Views Bulk Operations (VBO) 4.4.8 Minor update available for module views_bulk_operations (4.4.8). Release: Commerce Authorize.Net 2.0.0 Major update available for module commerce_authnet (2.0.0). Usage Milestone: Easy Breadcrumb Module easy_breadcrumb crossed 100,000 active installs. Release: SDC Components 2.0.3 Minor update available for module sdc_components (2.0.3). Release: Commerce ML Starter 8.x-1.94 Minor update available for module cmlstarter (8.x-1.94). Release: Field Label Visibility (an intuitive approach to editing node forms) 1.0.3 Minor update available for module field_label_visibility (1.0.3). Release: DruxtJS 1.3.1 Minor update available for module druxt (1.3.1). Release: Monobank payment API 1.0.4 Minor update available for module monobank (1.0.4). Release: Personified 1.0.4 Minor update available for module personified (1.0.4). Module Revived: Fleetview client 1.1.2 Module fleetview_client updated after 16 months of inactivity (1.1.2).

Compact date/time range formatter

2,722 sites Security covered Drupal 10–11
View on drupal.org

This module provides a more compact way to display date and time ranges by omitting repeated month or year information. It allows you to configure custom formats for date-only and date & time ranges, similar to how Drupal's core date formats work.

The compact date/time range formatter module provides the ability to display date/time range fields in a more compact form, by omitting the month or year where it would be duplicated.

Examples:
24–25 January 2017 (range is within a single month)
29 January–3 February 2017 (range is within a single year)
9:00am–4:30pm, 1 April 2017 (range is within a single day)

This module defines a new configuration entity, date_range_format, to store patterns for date range formats, in a similar way to Drupal's core date formats. Variations can be configured for use where the day, month or year is the same for both start and end date.

Both date-only and date & time ranges are supported.

To configure date/time range formats, visit Administration » Regional and language » Date and time range formats. The patterns use the same PHP date/time formatting tokens as Drupal's core date formats.

Important note if upgrading from 1.x-dev

There was no official 1.x release and there is no automatic upgrade path between 1.x-dev and 2.0. If you are upgrading from 1.x-dev, you should delete and recreate the date format configuration. More information is available here: #3226140: Upgrading from 1.x-dev to 2.x.

Depends on

Dependencies of the latest stable release

  • datetime_range Drupal core

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
1
Tracked since
Jul 2026
Latest release
1 month ago
Releases (12 mo)
1 ▲ from 0
Maintenance
Active

Releases

Version Type Core Release date
2.1.2 Stable 10–11 Jul 25, 2026