Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: Configuration Language Lock 1.0.2 Minor update available for module config_language_lock (1.0.2). Release: Canvas Override 1.0.1 Minor update available for module canvas_override (1.0.1). Release: Media Remote Image 8.x-1.2 Minor update available for module media_entity_remote_image (8.x-1.2). Release: IDNA Convert Service (punycode) 2.0.4 Minor update available for module idna (2.0.4). Release: Bootstrap Cloud 7.1.3 Minor update available for theme bootstrap_cloud (7.1.3). Release: Token Browser 1.0.2 Minor update available for module token_browser (1.0.2). Release: Varbase Project 11.0.8 Minor update available for module varbase_project (11.0.8). Release: Media Remote Image 2.0.0-beta1 First beta version released for module media_entity_remote_image (2.0.0-beta1). Usage Milestone: Term CSV Export Import Module term_csv_export_import crossed 1,000 active installs. Security Coverage: Module Scout Module module_scout now has official Drupal security advisory coverage.

Smart Date Range Formatter

3 sites No security coverage Drupal 11 · not 10
View on drupal.org

This module enhances Drupal's date range field by providing a smarter way to display date ranges. It automatically detects if a range falls on the same day and simplifies the output to avoid repetition, showing only the times. If the range spans multiple days, it displays both full dates and times.

The Smart Date Range Formatter module provides a field formatter for Drupal's core daterange field type that intelligently detects whether a date range starts and ends on the same calendar day.

When the start and end dates fall on the same day, only the time portion needs to differ — the module avoids repeating the date twice, keeping the output clean and readable (e.g. January 15, 2026, 9:00 AM – 5:00 PM).

When the start and end dates fall on different days, both full date/time values are displayed (e.g. January 15, 2026 – January 18, 2026).

Features:

Separate configurable date formats for same-day and different-day ranges
Fully respects the site timezone and per-user timezone settings
Respects the current language ($langcode) for all formatted output
Lightweight Twig template (smart-daterange.html.twig) for easy theming
Ships with minimal CSS, easily overridable by your theme
No external dependencies beyond Drupal core's datetime module

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
2
Tracked since
Apr 2026
Latest release
4 months ago
Releases (12 mo)
2 ▲ from 0
Maintenance
Active

Releases

Version Type Core Release date
1.0.0 Stable 11 Apr 29, 2026
1.x-dev Dev 11 Apr 29, 2026