Drupal is a registered trademark of Dries Buytaert
Release: Drupal 10.3.6 Update released for Drupal core (10.3.6)! Release: Drupal 11.0.5 Update released for Drupal core (11.0.5)! Release: Drupal 10.2.9 Update released for Drupal core (10.2.9)! Release: Drupal 10.2.10 Update released for Drupal core (10.2.10)! Release: Drupal 10.3.7 Update released for Drupal core (10.3.7)! Release: Drupal 11.0.6 Update released for Drupal core (11.0.6)! Release: Drupal 10.3.8 Update released for Drupal core (10.3.8)! Release: Drupal 11.0.7 Update released for Drupal core (11.0.7)! Module Revived: Translation Management Tool 8.x-1.19 Module tmgmt updated after 7 months of inactivity (8.x-1.19). Usage Milestone: Account field split Module account_field_split crossed 10,000 active installs.

Provides a field widget and a set of field formatters for date range field types to allow editors to set that a date has no time, meaning that it place all the day.
Similar functionality of date_all_day module in drupal 7 that is part of the date project, ported to drupal 8.

This module uses the daterange field type from core, which have start and end dates. To make the end date optional, please check the following core issue: #2794481: Allow end date to be optional

Notes on the 2.x release

The new major version is to switch to semantic versioning without having version conflicts with the existing 8.x-1.x release. This version is the first with support for Drupal 10 and upper and with support for the Claro admin theme, but there shouldn't be breaking changes. Sites can upgrade by executing:

composer require drupal/date_all_day:^2.0

Usage:

Field creation

Create a new field Datetime Range field.

  • In Drupal 10.2 and later go to Structure > Content Types (or any other fieldable entity) > manage fields and add a new field of type Date and time. In the next screen, set an appropriate label and choose "Date range".
  • In Drupal versions before 10.2 Structure > Content Types (or any other fieldable entity) > manage fields and add a new field of type Datetime Range. Under field settings, select "Date and time". No other date types are supported.

Field configuration in edit form

Go to Manage form display and select "Date and time range with All day".

Field display configiratu9obn

Go to Manage display and select "Default (All day)" or "Custom (All day)" for your daterange field and configure the field formatter as needed. You can choose 2 date formats for the date with and without time. It should be pre-configured by default, but you can create your custom date formats under Configuration > Regional and language > date and time formats to adapt it to your needs.

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

Releases

Version Type Core Release date
2.1.0 Stable Dec 16, 2024