I might be missing something but I can't see any way to apply a "less/greater than" type of filters to a DateRange type start/end sub-fields in a View.
Could some kind soul confirm that a) it isn't implemented yet and b) it's planned?
I believe that being able to filter on start/end dates (e.g. selecting upcoming events or events that are on right now) is crucial functionality to DateRange fields.
Or if I am indeed missing something please educate me how to implement it within current functionality.

Comments

ndlarge created an issue. See original summary.

MrPeanut’s picture

(Disclaimer: I'm using 8.3.0-dev.)

Apply the patch from #2786577-39: The Views integration Datetime Range fields should extend the views integration for regular Datetime fields.

The date field should be an option in your filter criteria. You should see two options: Date (field_date) and Date (field_date:end_value) (with your own field name, of course).

You can set the operator and an offset like you could in Drupal 7. For example, my "Upcoming events" view is set to "Is greater than or equal to now".

mpdonadio’s picture

I still need to look at this to see if it is a true duplicate, but be warned that the latest patch on #2786577: The Views integration Datetime Range fields should extend the views integration for regular Datetime fields has an update path, that has not been 100% tested yet. Backup your site before trying it.

marassa’s picture

Works PERFECTLY - many thanks!

mpdonadio’s picture

OK, calling this a dup.