How to generate dates (in a data-set) excluding Sunday in each week

Hi,

I wanted to generate dates for a data-set excluding the Sundays in each week, for every month

scenario,
I want to mock a exam taken by students every week for each quarter of the year excluding Sundays and public holidays.
I want to mimic, a in-flow pattern based on this mock data and prepare a variance chart.

Could you possibly use the add days function if it’s a Sunday, so Sundays always turn into Mondays for example?
if my_date.strftime("%A") == 'Sunday' then (my_date + days(1)).strftime("%Y-%m-%d")

You could replace days(1) with days(random(1,6) for other days too.