0

I'm trying to work out the amount of weeks between two dates using PHP7 but then loop though and show me the weekday dates for each of these week numbers.

Eg.

Start date January 1st 2020 February 28th 2020

Week 1

Monday December 30th 2019

Tuesday December 31st 2019

Wednesday January 1st 2020

Thursday January 2nd 2020

Friday January 3rd 2020

Week 2

Monday 6th January 2020

Tuesday 7th January 2020

Wednesday 8th January 2020

Thursday 9th January 2020

Friday 10th January 2020

Any help will be appreciated Thankyou!

Sorry for the formatting

  • 1
    You basicly want all [mondays, tuesdays, wednesdays, thursdays and fridays](https://stackoverflow.com/questions/14063336/php-how-to-use-timestamp-to-check-if-today-is-monday-or-1st-of-the-month) between two dates with their [week number](https://stackoverflow.com/questions/9567673/get-week-number-in-the-year-from-a-date-php)? Show us your effort and what you struggle with. – Definitely not Rafal Dec 11 '20 at 17:25
  • Thankyou for breaking it down, those two links also really helped if you reply to this with the above as the answer, i will mark that as the answer and post my code. – Retroisbest Dec 14 '20 at 08:53

0 Answers0