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).

This project adds a set of pre-defined date and time formats to your Drupal site to cover common display needs. It also allows for customization of short date and time formats, and updates core Drupal date formats.

Date and Time Formats is a recipe that creates the following date formats (shown with example defaults) for common needs:

  • Long (January 31, 2026)
  • Long with day (Saturday, January 31, 2026)
  • Long with day and time (Saturday, January 31, 2026 - 15:46)
  • Long with time (January 31, 2026 - 15:46)
  • Long yearless (January 31)
  • Medium (Jan 31, 2026)
  • Medium with day (Sat, Jan 31, 2026)
  • Medium with day and time (Sat, Jan 31, 2026 - 15:46)
  • Medium with time (Jan 31, 2026 - 15:46)
  • Medium yearless (Jan 31)
  • Short (31/1/26)
  • Short with day and time (Sat, 31/1/26 - 15:46)
  • Short with time (31/1/26 - 15:46)
  • Short yearless (31/1)
  • Time only (15:46)

The following customizations are available when the recipe is applied from the command line:

  • Format for short dates: separator, order of month and day, 2-digit or 4-digit year (Default: d/m/yy)
  • Format for times: 12-hour format with am/pm or 24-hour format (Default: 24-hour format)

The following date formats provided by Drupal core are updated and relabeled:

  • Default long date
  • Default medium date
  • Default short date

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
2
Tracked since
Jun 2025
Latest release
7 months ago
Releases (12 mo)
1
Maintenance
Active

Releases

Version Type Core Release date
1.0.0 Stable Jan 31, 2026
1.0.x-dev Dev Jun 2, 2025