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.
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.
More in the Twig ecosystem
Most installed first