Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Twig DateTime

No security coverage Under active development 8 sites

Part of the Twig ecosystem · 43 projects

This module provides a Twig function to create a DateTime object from a given date string. This is useful for formatting dates for display, such as in calendars.

A simple Drupal module to create a DateTime from given date using Twig.

Features

Useful for outputting dates in a DateTime format for calendars.

Post-Installation

In Twig, simply use the get_datetime() function with a date within the function.

Supporting this Module

This was created for internal use to extend upon an iCal export feature we had but we chose to make it available to the Drupal community. If anyone wants to become a co-maintainer and improve upon it, please let us know.

Drupal 8–11

Ask your assistant about Twig DateTime

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

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
3
Tracked since
Apr 2024
Latest release
2 years ago
Releases (12 mo)
0
Maintenance
Dormant

Release Timeline

Releases

Version Type Core PHP Release date
1.0.2 Stable 8–11 Apr 22, 2024
1.0.1 Stable 8–10 Apr 19, 2024
1.0.x-dev Dev 8–10 Apr 19, 2024