Filtrex v0.1.0
Filtrex.Condition.Date
Filtrex.Condition.Date
is a specific condition type for handling date filters with various comparisons.
There are three different value formats allowed listed in each of the three tables below
Key | Type | Format / Allowed Values |
inverse | boolean | See Filtrex.Condition.Text |
column | string | any allowed keys from passed config |
comparator | string | after, on or after, before, on or before |
value | string | “YYYY-MM-DD” |
type | string | “date” |
Key | Type | Format / Allowed Values |
inverse | boolean | See Filtrex.Condition.Text |
column | string | any allowed keys from passed config |
comparator | string | between, not between |
value | map | %{start: “YYYY-MM-DD”, end: “YYYY-MM-DD”} |
type | string | “date” |
Key | Type | Format / Allowed Values |
inverse | boolean | See Filtrex.Condition.Text |
column | string | any allowed keys from passed config |
comparator | string | is, is not, equals, does not equal, |
| | in the last, not in the last, |
| | in the next, not in the next |
value | string | %{interval: (days, weeks, months, or years), amount: integer} |
type | string | “date” |