Skip to content Skip to footer navigation

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