As the post title - I have a view created in the block editor and I would like to add filter by year based on the post date. How can I achieve this? Thanks!
For the default post date field you're not able to do this.
However if you create a date custom field you are able to add a Frontend Filter for this and the users will be able to filter the posts by this date field.
Do you mean to get the current date and auto add it to this field ? It would be possible but it would require the use of custom code when creating the posts.
What you can do is to make the field required so users will be forced to fill out the field.