Drupal is a registered trademark of Dries Buytaert
Protected Pages 3.0.0 Major update available for module protected_pages (3.0.0). Commerce Core 3.3.8 Minor update available for module commerce (3.3.8). Layout Builder Reorder 2.0.1 Minor update available for module layout_builder_reorder (2.0.1). Ban 1.1.0 Minor update available for module ban (1.1.0). Field Formatter Range 2.0.0 Major update available for module field_formatter_range (2.0.0). Field Formatter Range 8.x-1.8 Minor update available for module field_formatter_range (8.x-1.8). UI Patterns (SDC in Drupal UI) 2.0.18 Minor update available for module ui_patterns (2.0.18). Varbase FAQs 9.2.1 Minor update available for module varbase_faqs (9.2.1). Search API Solr 4.3.11 Module search_api_solr updated after 14 months of inactivity (4.3.11). Provus Mega Menu Module provus_mega_menu crossed 1,000 active installs.

The Open Date Range module provides a new field type that allows for flexible date ranges where either the start or end date, or both, can be optional. This is useful for representing time periods with unknown or variable boundaries, such as ongoing projects or deadlines.

Allows optional start AND end dates for date ranges! The Open Date Range module provides a new field type that solves a limitation of Drupal's standard date range field: requiring both a start and end date. This module allows you to model flexible time periods where both the start and end dates are optional in content forms. This is perfect for defining ranges where one or both boundaries are unknown or subject to change.

Features

  • Basic Functionality: This module introduces the Open date range field type, which is a direct extension of the core Datetime Range field.
  • Unique Feature: It overrides Drupal's default validation and widget rules to ensure that neither the Start Date nor the End Date is required in the content editing form. The field will only be treated as empty and discarded if the editor leaves both date inputs completely blank. This allows for ranges defined by only a start date, only an end date, or a full range.
  • When and Why to Use: Use this module whenever you need flexibility in defining a time period. If you need to record a deadline without a specific start time, or a project that is "Ongoing Since..." without a set end date, this is the solution.
  • Use Cases:
    • Deadlines/Cut-Offs: Record an event with just a required "Due By" date (End Date only).
    • Ongoing Periods: Record a status that started on a specific date and is still active (Start Date only).
    • Draft Scheduling: Allow content to be saved even if the full date range is still to be determined.

Post-Installation

This module does not have a separate configuration page or administration settings form. Its functionality is exposed immediately as a new field type.

  1. Navigate to StructureContent types (or the structure page for your target entity, e.g., Taxonomy).
  2. Click Manage fields for the desired entity bundle.
  3. Click Add new field.
  4. Select the field type Open date range (found under the Date/Time category).
  5. On the Manage form display tab, ensure the widget is set to Open date and time range. This is the custom widget that ensures the form fields are optional.

Additional Requirements

This project requires one Drupal core module to be enabled:

  • Datetime Range

There are currently no specific recommended modules or libraries that enhance the core functionality of Open Date Range.

Similar projects

The primary alternative is to use two separate Date fields (one for the start, one for the end) and rely on the entity's field settings to make both optional.

  • Differentiation: The Open Date Range module is superior because it provides a single, cohesive field that maintains the semantic relationship of a date range, allowing you to use standard date range formatters and easily integrate with Views and other modules designed for the native date range type.

Activity

Total releases
1
First release
Oct 2025
Latest release
9 months ago
Releases (12 mo)
1 ▲ from 0
Maintenance
Slowing

Releases

Version Type Release date
1.0.x-dev Dev Oct 13, 2025