-
-
Notifications
You must be signed in to change notification settings - Fork 7k
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
Filter by date range #851
Comments
Yes, you can use: dateFieldName_gte and dateFieldName_lte |
This only works for intersection. Meaning from_date =< to_date. dates from 2017 up to 2018. |
Whats the date format to use for filter? |
gte and lte is not working on date filter |
@ladaniavadh You'll need to store your date in ISO 8601 format (e.g. "YYYY-MM-DD...") in order to be able to sort and filter properly. This is standard practice for many reasons, including that it allows simple lexical sorting, and avoids issues with localised date formats. |
Doesn't work for me on dates. |
and initialize the dateFieldName_gte property and dateFieldName_lte property by undefined instead of an empty string, by setting the value equal to undefined, the query will not include that property, which allows you to get data when you don't select the date. Thanks |
Is it possible filter by date range? I have 2 fields
from_date
andto_date
, is there any way to filter by range?The text was updated successfully, but these errors were encountered: