Modifier: format


Given a date string, or anything that sort of looks like a date string, format will convert it to a Carbon instance and allow you to format it with PHP’s datetime format variables.

event_date: April 15 2016
{{ event_date format="Y-m-d" }}
2016-04-15

Additional Reading

Learn how to use and chain modifiers in the Antlers template guide.

Last modified on October 31, 2019