Filter By specific same days

In Listview Filter, I want to add a filter that will display the records for all mondays of one month.

Let’s say August 2023, I want to filter all the mondays records in August 2023.

And I want to make this using code to be able to install to the production.

Please help me