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!
Date modifiers preserve the date value's timezone by default. Dated entries use UTC. Enable localize_dates_in_modifiers in config/statamic/system.php to convert dates to your display timezone before applying modifiers.
Please refer to our Timezones guide for more information.