Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

22 lines (11 sloc) 0.598 kb

Subtracts a day from a date. The value must be of the form {{Y,M,D},{H,I,S}}.

For example:

{{ value|sub_day }}

When the value is {{2008,12,10},{15,30,0}} then the output is {{2008,12,9},{15,30,0}}.

The filter has an optional argument which defines the number of days to subtract:

For example:

{{ value|sub_day:3 }}

When the value is {{2008,12,10},{15,30,0}} then the output is {{2008,12,7},{15,30,0}}.

Jump to Line
Something went wrong with that request. Please try again.