Skip to content

Cannot filter by date equals to #553

Discussion options

You must be logged in to vote

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:

filterFn: <TData extends Record<string, any> = {}>(
  row: Row<TData>,
  id: string,
  filterValue: Date,
) => isSameDay(row.getValue<Date>(id), filterValue);

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by MadalenaPavao
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants