Cannot filter by date equals to #553
-
I want to filter a date column, and I want it to display the dates EQUAL to the one chosen by the user. But specifying "equals" in the filterFn doesn't work. In fact, the example provided by Material React Table, using "lessThanOrEqualTo" only shows values "lessThan" the selected date, never "equal".
How should I do to filter by the exact date? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I had similar problem, and looking at the code, the equals filter function does not filter dates, so I created a similar function that filters by date, and used that in the filterFn:
|
Beta Was this translation helpful? Give feedback.
I had similar problem, and looking at the code, the equals filter function does not filter dates, so I created a similar function that filters by date, and used that in the filterFn: