This module provides a field formatter to simplify the display of date range fields. It allows for easy creation of user-friendly date and time range phrases using international formatting options.
Provides a field formatter to simplify daterange field output. Easily create simplified date and time range phrases like "October 5, 2013, 10:00 AM to 1:30 PM."
This formatter wraps https://github.com/flack/ranger (which is based on the range formatter in fullCalendar) to provide a simplified set of date range output options outside of the standard Drupal date format configuration. Format options for date and time are enumerated by the PHP IntlDateFormatter class:
IntlDateFormatter::NONE (integer)
Do not include this element
IntlDateFormatter::FULL (integer)
Completely specified style (Tuesday, April 12, 1952 AD or 3:30:42pm PST)
IntlDateFormatter::LONG (integer)
Long style (January 12, 1952 or 3:30:32pm)
IntlDateFormatter::MEDIUM (integer)
Medium style (Jan 12, 1952)
IntlDateFormatter::SHORT (integer)
Most abbreviated style, only essential data (12/13/52 or 3:30pm)
See https://github.com/flack/ranger/blob/master/README.md for more details. For non 'en' locales, the PHP extension php-intl is required.
Similar modules:
Ask your assistant about Daterange Simplify
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 Drupal core
Required by
Tracked projects that depend on this one
No tracked projects depend on this one yet.