Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: OpenID Connect / OAuth client 3.0.0-alpha9 New alpha version released for module openid_connect (3.0.0-alpha9). Usage Milestone: Google Analytics Module google_analytics crossed 1,000 active installs. Release: GraphQL Compose Codegen 1.1.2 Minor update available for module graphql_compose_codegen (1.1.2). Release: Mapy.com 1.1.3 Minor update available for module mapycom (1.1.3). Release: Ckeditor5 entity browser 3.0.3 Minor update available for module ckeditor5_entity_browser (3.0.3). Release: Ckeditor5 entity browser 3.0.1 Minor update available for module ckeditor5_entity_browser (3.0.1). Release: Ckeditor5 entity browser 3.0.2 Minor update available for module ckeditor5_entity_browser (3.0.2). Release: Teamleader Integration 4.0.2 Minor update available for module teamleader (4.0.2). Release: Change Requests 2.1.9 Minor update available for module change_requests (2.1.9). Module Revived: Entityqueue Buttons 1.1.2 Module entityqueue_buttons updated after 8 months of inactivity (1.1.2).

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 Structure โ†’ Content 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.

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.

Activity

Tracked releases
1
Tracked since
Oct 2025
Latest release
10 months ago
Releases (12 mo)
1 ▲ from 0
Maintenance
Slowing

Releases

Version Type Core Release date
1.0.x-dev Dev 10โ€“11 Oct 13, 2025