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

KeyTypeFormat / Allowed Values
inversebooleanSee Filtrex.Condition.Text
columnstringany allowed keys from passed config
comparatorstringafter, on or after, before, on or before
valuestring“YYYY-MM-DD”
typestring“date”
KeyTypeFormat / Allowed Values
inversebooleanSee Filtrex.Condition.Text
columnstringany allowed keys from passed config
comparatorstringbetween, not between
valuemap%{start: “YYYY-MM-DD”, end: “YYYY-MM-DD”}
typestring“date”
KeyTypeFormat / Allowed Values
inversebooleanSee Filtrex.Condition.Text
columnstringany allowed keys from passed config
comparatorstringis, is not, equals, does not equal,
in the last, not in the last,
in the next, not in the next
valuestring%{interval: (days, weeks, months, or years), amount: integer}
typestring“date”

Summary

Types

Functions

parse(config, map)

See Filtrex.Condition.Text.parse/2