statamic / ideas

💡Discussions on ideas and feature requests for Statamic
https://statamic.dev
31 stars 1 forks source link

Filter entries between two dates #1027

Closed morhi closed 1 year ago

morhi commented 1 year ago

Currently, in a collection list view it is only possible to select the same date field to filter "after" or "before" a specific date, but not "between". I have two options in mind to fix this:

1) We add another "between" filter option so that a date range can be selected. 2) We allow the same field to be added to the filter multiple times. Currently, you can only set one condition per field. However, this raises the question of whether we also need to add an "and/or" selector for the queries. I would say that an "and" query should be the default, since this is already the default for multiple query fields anyway.

Screenshot 2023-08-07 at 09 43 10

morhi commented 1 year ago

@jasonvarga Hi Jason! Would you mind giving me a quick answer if this is possible? A customer asks me to insert a filter to filter orders between two dates. I'd also be happy with an idea for a workaround :) Thanks man!