Skip to content Skip to footer navigation
You are reading the Statamic 6 Alpha docs. 👀

Format Translated Modifier

Given a date string, or anything that sort of looks like a date string, format_translated will convert it to a Carbon instance and allow you to format it using your site's configured locale.

event_date: 2024-02-28
{{ event_date | format_translated('l j F Y') }}
{{ Statamic::modify($event_date)->format_translated('l j F Y') }}

Assuming your site's locale is fr_FR:

mercredi 28 février 2024
Warning!

By default, when using a modifier on a date variable, it will be operating on the UTC date rather than the localized date.

Please refer to our Timezones guide for more information.

A troll pointing a teaching stick