Hi,
I need help with looping through the dates of working days (Monday to Friday) for the following week.
I need to send an email once a week (probably on a Thursday or Friday) informing people of their rooms for the following week. I need to loop through each day, starting with Monday and finishing on Friday.
I wrote this:
for($i=0;$i<5;$i++) { echo date('Y-m-j', strtotime('Monday+'.$i)).'<br />'; }
I thought this would work, but it returns the correct date for next Monday (2013-03-25) and then the other 4 days are all showing as 2013-03-24.
Any ideas how I can get this to work?
Thank you for taking the time to help.
Many Thanks,
John