Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Date All Day

Security covered Under active development 5,919 sites

This module allows editors to mark date range fields as "all day" by providing a widget and formatters. It works with core's date range field type to represent dates without specific times.

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.

Drupal 8–11

Ask your assistant about Date All Day

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

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
3
Tracked since
Apr 2023
Latest release
1 year ago
Releases (12 mo)
0 ▼ from 1
Maintenance
Slowing

Release Timeline

Releases

Version Type Core PHP Release date
2.1.0 Stable 8–11 Dec 16, 2024
2.0.x-dev Dev 8–11 Apr 27, 2023
2.0.0 Stable 8–10 Apr 27, 2023