views_daterange_filters
Adds filter options for date range fields. Install and rebuild cache to see the options.
It will be obsolete when this core issue is resolved: #2924061: Create views filter plugin for date range fields
For more information see this discussion: #3068036: Does this cover all parts of the patch and vice-versa?
Includes
Filters by date ranges which include the supplied date.
- Add filter on the date range field
- Select operator "Includes"
- Modify date options as required
Includes (Unbound) (Version 2.x+)
Filters by date ranges which include the supplied date, properly handling ranges that do not have an end date defined (optional end date).
- Add filter on the date range field
- Select operator "Includes (Unbound)"
- Modify date options as required
The Includes (Unbound Indexed) operator does not apply the DATEFORMAT function in the query WHERE condition, which enables database index usage and results in better performance.
Overlaps
Filters by date ranges which overlap with the supplied date range.
- Add filter on the date range field
- Select operator "Overlaps"
- Modify date options as required
Ends by
Filters by date ranges which end by the supplied date. Equivalent to "End date <= supplied date". Useful for grouped filters when using "Start date". See screenshot below.