Radical Design Course by Jack McDade

From the creator of Statamic

Learn how to make your websites standout and be remembered.

Bought Jack McDade's course on design. Going through it now...and it is SO well done!

— Justin Jackson, Transistor.fm

weeks_ago Modifier

Returns the number of weeks 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 2015
{{ date | weeks_ago }}
{{ Statamic::modify($date)->weeksAgo() }}
{{ test_date | weeks_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 →