Radical Design Course by Jack McDade

From the creator of Statamic

Learn how to make your websites standout and be remembered.

For a software dev like me who has no idea how to create a cute hand-drawn dashed line, this course just 100% works.

— Ira Zayats, Developer

days_ago Modifier

Returns the number of days 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.

# Let's assume a server date of "December 31 2021"
date: December 25 2021
{{ date | days_ago }}
6
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 →