Interested in sponsoring this lovely little spot?

months_ago Modifier

Returns the number of months since a given date variable. Statamic will attempt to parse any string as a date, but try to keep it in the least ambiguous date format possible.

date: October 1 2017
{{ date | months_ago }}
{{ test_date | months_ago }}
HR: Section
Related Modifiers

These similar modifiers may aid you on your quest.

rotate-vertical
HR: Section
Docs feedback

Submit improvements, related content, or suggestions through Github.

Betterify this page →