Drupal is a registered trademark of Dries Buytaert
Protected Pages 3.0.0 Major update available for module protected_pages (3.0.0). Commerce Core 3.3.8 Minor update available for module commerce (3.3.8). Search API HTML Element Filter 1.0.7 Minor update available for module search_api_html_element_filter (1.0.7). Layout Builder Reorder 2.0.1 Minor update available for module layout_builder_reorder (2.0.1). Ban 1.1.0 Minor update available for module ban (1.1.0). Field Formatter Range 2.0.0 Major update available for module field_formatter_range (2.0.0). Field Formatter Range 8.x-1.8 Minor update available for module field_formatter_range (8.x-1.8). Varbase Media Header 9.2.1 Minor update available for module varbase_media_header (9.2.1). Search API Solr 4.3.11 Module search_api_solr updated after 14 months of inactivity (4.3.11). Provus Mega Menu Module provus_mega_menu crossed 1,000 active installs.

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

Activity

Total releases
2
First release
Jun 2025
Latest release
5 months ago
Releases (12 mo)
1
Maintenance
Active

Releases

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