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 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]

Activity

Total releases
1
First release
Feb 2026
Latest release
4 months ago
Releases (12 mo)
1 ▲ from 0
Maintenance
Active

Releases

Version Type Release date
1.0.2 Stable Feb 18, 2026