filter_date_value

Retrieves a date value from the request based on a filter name.

Example

1
{{ 'date_filter' | filter_date_value: 'today' }} => 2020-01-15

Input

Type Parameter Description Required
string filterName The name of the date filter. Comes before the | sign. Required
mixed defaultValue The default value to return if the filter is not found. Smart values that can be used: ‘today’  

Output

Type Description
mixed The value from the request