Alters a timestamp by incrementing or decrementing in a format accepted by PHP's native strtotime()
method.
date: January 1, 2000
{{ date | modify_date("-1 day") }}{{ date | modify_date("next Sunday") }}{{ date | modify_date("+3 months") }}
December 31, 1999January 2, 2000April 1, 2000
Hot Tip!
As of Statamic 5, this modifier will return a copy of the Date. Earlier versions would modify the variable directly which will be passed onto any additional modifiers.