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). Release: Opensolr Search 4.5.0 Minor update available for module opensolr_search (4.5.0). Release: Timelinr 1.0.1 Minor update available for module timelinr (1.0.1). Usage Milestone: Simplify Module simplify crossed 10,000 active installs. Usage Milestone: Views Reference Filter Module entityreference_filter crossed 10,000 active installs. Usage Milestone: Dropdown Language Module dropdown_language crossed 10,000 active installs. Usage Milestone: Paragraphs Browser Module paragraphs_browser crossed 10,000 active installs. Usage Milestone: OpenAPI Module openapi crossed 10,000 active installs. Usage Milestone: Decoupled Router Module decoupled_router crossed 10,000 active installs. Module Revived: Entityqueue Buttons 1.1.2 Module entityqueue_buttons updated after 8 months of inactivity (1.1.2).

Datetime Extras

1,141 sites Security covered Drupal 9–11
View on drupal.org

This module extends Drupal's core date and time functionality. It provides a widget that allows users to set an end date either by specifying an absolute date or a duration, and another widget for date-only selection lists.

What is the Datetime Extras module?

This aims to be a set of widgets, formatters, and other tools to extend the core Datetime and Datetime Range modules.

Features

"Date and time range with duration" (daterange_duration) widget

Allows content creators to select a start date/time and then optionally define the absolute end time (like the core widget) or to specify a duration (an offset relative to the start date/time). Requires duration_field module, version 8.x-2.0-rc3 or higher:
composer require 'drupal/duration_field:^2.0'
#2845081: Provide a datetime_range widget to define end time via a duration offset

"Select list, no time" (datetime_datelist_no_time) widget

Adds a date-only variant of core's "Select list" (datetime_datelist) widget.
#2823764: Add granularity options

Why do we need this module when Datetime is in core?

The Datetime module in core is really meant to provide a base set of time and date related features. But, it cannot provide everything that site builders need, nor will it ever. The Drupal 7 Date module (and friends) provide a rich set of features, and not all of these can (or should really) be supported by core. This module will provide a home for these needed features.

I have an idea? Will you implement it?

One of the goals of the Datetime Extras module is to try to avoid fragmentation of contrib modules for the Datetime space. So, if you have an idea, create an issue. Another goal, though, is to help mentor contributors to get core quality code into this module (that is why we are recruiting a lot of maintainers for the module). We may not be able to implement your idea right away, but we will be here to help you along the way. See the CONTRIBUTING.md file included with the project for additional information on how to contribute.

What is the relation between Datetime Extras and the Date module?

Datetime Extras is the logical progression of adding Datetime to core. Since the architecture of Drupal 8 (and hence Datetime) is radically different than Drupal 7, this module can mirror what core is doing. It also allows Drupal 7 to continue living without needing to worry about the Drupal 8 version. There will be no D8 port of the Date module. All effort is being focused on core and here in Datetime Extras.

Other D8 date-related projects of interest

date_recur: Support for recurring dates.
date_all_day: Support for "all-day" date ranges.

Depends on

Dependencies of the latest stable release

  • datetime 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 2025
Latest release
1 year ago
Releases (12 mo)
0 ▼ from 1
Maintenance
Dormant

Releases

Version Type Core Release date
8.x-1.2 Stable 9–11 Jul 17, 2025