Add twig function to print formatted output

Created on 1 June 2023, about 1 year ago

Problem/Motivation

When printing dates with Twig, it would be helpful to be able to format the output, like you can with core dates, i.e.

{{ node.field_some_field.value|date('U')|format_date('some_format') }}

For reference, this functionality exists in the dev branch of the Smart Date contrib, as described here β†’ .

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

✨ Feature request
Status

Active

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States jasloe

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024