I'm trying to figure out what a date(m-d-Y) would be for a specific week. The date that I'm trying to calculate would be passed in as the day string ('monday', 'tuesday', etc...) and the week would be a PHP DatePeriod object. I will be passing in a specific date and I would like to figure out any date of that DatePeriod week. Can anyone please help me?
EDIT: Sorry, I was struggling with how to ask this. Let's say I need to add an event to a calendar that will recur every week for a month. I have an initial date (ex. 7-23-2015) and I need to add an event for monday, tuesday and thursday for that week and every week after, for the month. So I need to figure out what the date would be for that day in whatever week that I am in. Does that make sense?