Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Smart Date Extra Tokens

Security covered Maintenance fixes only 16 sites

This module provides additional, useful tokens for the Smart Date and Smart Date Recur modules. These tokens allow for more flexible formatting and retrieval of start and end dates for smart and recurring date fields.

This module extends the smart_date and smart_date_recur token support that is currently available.

Module aims to provide missing token support or tokens that might be handy in some use cases.

Documentation on current token support:
https://www.drupal.org/docs/8/modules/smart-date/using-smart-dates-token...

The smart_date_recur sub-module also supports additional tokens that are currently not documented.

Requirements

Requires the smart_date (Smart Date) module.

Install

Install module via composer:

composer require drupal/smart_date_extra_tokens

Enable via drush:

drush en smart_date_extra_tokens

Configuration/Setup

No additional configuration is required or provided. See information
below regarding provided tokens and usage.

Smart date additional tokens

Tokens provided on smart dates:

value-closest

Grabs the proper start date for smart dates/recurring fields and
formats correctly.

Example of token structure:

[<entity_type>:<field_name>:<delta>:value-closest:<date format>]

Example of token usage:

[node:field_when:0:value-closest:Y-m-d]

end_value-closest

Grabs the closest end date for smart dates/recurring fields and
formats correctly.

Example of token structure:

[<entity_type>:<field_name>:<delta>:end_value-closest:<date format>]

Example of token usage:

[node:field_when:0:end_value-closest:Y-m-d]

Drupal 9–11

Ask your assistant about Smart Date Extra Tokens

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

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
4
Tracked since
Apr 2023
Latest release
7 months ago
Releases (12 mo)
1 ▲ from 0
Maintenance
Active

Release Timeline

Releases

Version Type Core PHP Release date
1.0.2 Stable 9–11 Feb 18, 2026
1.0.1 Stable 9–10 Apr 10, 2023
1.0.0 Stable 9–10 Apr 8, 2023
1.x-dev Dev 9–11 Apr 8, 2023