Modifier: modify_date


Alters a timestamp by incrementing or decrementing in a format accepted by PHP’s native strtotime() method.

date: October 23rd, 2019

{{ date | modify_date:last Sunday }}
{{ date | modify_date:+3 months }}
{{ date | modify_date:-2 weeks }}

October 20th, 2019
January 20th, 2020
January 6th, 2020

This modifier modifies the variable directly which will carry over to subsequent modifications, as shown in the above example.

Last modified on December 14, 2017