Modifier: modify_date


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

date: September 20th, 2026

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

September 13th, 2026
December 13th, 2026
November 29th, 2026

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

Additional Reading

Learn how to use and chain modifiers in the Antlers template guide.

Last modified on December 14, 2017