date_days_ago

Retrieves a date that is a specified number of days ago from a given date.

Example

1
{{ 1 | date_days_ago: '2020-01-15' }} => 2020-01-14

Input

Type Parameter Description Required
int daysAgo The number of days ago. Comes before the | sign. Required
string fromDateString The date to start from, defaults to the current date  

Output

Type Description
string The date that is the specified number of days ago