I have a View to display a feed of custom post type News at hidden link and I'd like to allow the user to filter by published date of year. In my Views, I have the following:
You can remove the PHP code snippet for the "wpv_filter_query" filter and include the post date filter in the view's "Query Filter" section, as shown in the attached screenshot.
I hope this helps and please let me know if you need any further assistance around this.