format Modifier

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
Docs feedback

Submit improvements, related content, or suggestions through Github.

Betterify this page →