Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Date filter #109

Closed
rickyoleary opened this issue Aug 10, 2023 · 6 comments
Closed

Date filter #109

rickyoleary opened this issue Aug 10, 2023 · 6 comments

Comments

@rickyoleary
Copy link

Hi, I was after something like this for a system we're designing. Do you plan to add date filters? For example, if I use greater than and pass a date, I'd expect results where the date is greater than specified.

@rickyoleary
Copy link
Author

The same applies for booleans. I can't compare where a boolean is true or false.

@thundermiracle
Copy link
Owner

if I use greater than and pass a date

The feature request is

  • Passing a date in search condition, compare to data which are date strings.

Am I right?

@rickyoleary
Copy link
Author

That is correct. As well as booleans. For example, your EQ operator on boolean flags causes an error. Like (LK) worked, however.

Also, with dates, it seemed in my tests yyyy-mm-dd format actually worked as it's the natural sort for strings. But if a date format is different, it'll fail.

@thundermiracle
Copy link
Owner

OK, I'll try to implement it anyway.

This was referenced Aug 14, 2023
@thundermiracle
Copy link
Owner

You can filter date right now.
https://codesandbox.io/s/filter-data-react-iw534?file=/src/getData.js

@rickyoleary
Copy link
Author

Works great, good work and thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants