Replies: 6 comments 12 replies
-
I will also like to get this please even anyone can help with an example using version 8 |
Beta Was this translation helpful? Give feedback.
-
Hi we had this discussion on discord, here an example of custom filter function ` ` |
Beta Was this translation helpful? Give feedback.
-
Did it work? |
Beta Was this translation helpful? Give feedback.
-
Step 1: Create two date input, if the column record is Date type
Step 3: Add filterfn to the column Def as a string
Step 4: import filterFns from react table, and import also so your table instance will be like below
|
Beta Was this translation helpful? Give feedback.
-
while using the above code the table is not getting filtered and its giving me the below error: can you please help me? What is the date format that I should pass ? The current date format is - 'Fri Jan 28 1994 00:00:00 GMT+0530 (India Standard Time)' and the range I am passing is like an array - [ 'Fri Jan 28 1994 00:00:00 GMT+0530 (India Standard Time)', 'Mon Jul 11 2022 00:00:00 GMT+0530 (India Standard Time)' ,]. is the above formats correct ? I was not able to find any reference for the date range filters in the Tanstack docs. |
Beta Was this translation helpful? Give feedback.
-
I've created an example repo for all the lazy peoples 😂 |
Beta Was this translation helpful? Give feedback.
-
Can anyone please give a full example Date Range filter for React Table ?
I cannot get the dates to get memorized.
Thank you
Beta Was this translation helpful? Give feedback.
All reactions