I'm trying to get the start/end dates of the 7-day date range where the following are true (given a month and year):
- Starts on a Saturday
- Ends on the following Friday
- Has at least 4 of its 7 days in the given month (meaning up to 3 can be in the next month)
- Is the last date range in the month that meets these conditions
For example, if I were to get this period for the month of August 2020, the result would be 8/22 to 8/28. If I were to do the same for June 2020, the result would be 6/27 to 7/3.
Does anyone have any ideas? Thank you!