D8 Views - Contextual Filter by Month & Year? (Content date field) We have a dev site finally patched all the way up to 8.5.3. Our old site (8.4.0) was using a Views patch (just for reference) that allowed for a content date field to be contextually filtered by month and year:

https://domain.com/events/042018

returned all events with month 04 and year 2018.

Now on views 8.5.3 this patch is no longer applicable and seems to be integrated for Created Date and Updated Date. But I don't need these date fields. I am trying to access a content date field that I made. 


Does anyone know how to do this?
or
Can you help me get started on creating a custom views contextual filter handler that can access this custom date field?


Thanks so much!

Example of View: Show all events. Contextually Filter by Date. But instead of an exact date, only grab month and year parts, i.e. show all events for July 2018 /events/201807
Remove your date contextual filter, by clicking remove.
click Add a contextual filter, and search for the date field and select the "Year+month" granularity. Then click add. 




once you are done you should have your contextual filter look like this:



Now you can go events/201807 and it would give you the same results.

update: this granularity is available for all date fields under the contextual filter option (node.field_somedatefield (year_month) provided the field has been added normally using content types manage fields section: