Skip to content

Understanding of Twig filters #12104

Answered by brianjhanson
svonlanthen asked this question in Q&A
Discussion options

You must be logged in to vote

The format_datetime filter is a part of the IntlExtension which isn't installed in Craft by default. This would also apply to all the filters added by the package.

There's a small note about that at the very bottom of the documentation in Symfony (admittedly very easy to miss).

If you'd like to use the filters provided by the extension, you can composer install it into your project and register the twig extension in a plugin or module.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@svonlanthen
Comment options

@brandonkelly
Comment options

Answer selected by brianjhanson
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants