I'm trying to get work day range of a week, here is the code I have:
$from_ = date("Y-m-d", mktime(0, 0, 0, date("m")-3, 1, date("Y")));
$to_ = date("Y-m-d", mktime(0, 0, 0, date("m")-2, 0, date("Y")));
echo $from_ . ' - ' . $to_;
gives me days between 'May': 2015-05-01 - 2015-05-31
$week_start = date('m-d-Y', strtotime('-'.date('w').' days'));
$week_end = date('m-d-Y', strtotime('+'.(5-date('w')).' days'));
echo $week_start . ' - ' . $week_end;
gives me current months first weeks work day range: 08-02-2015 - 08-07-2015
My questions is: How do I combine these two? for example; I need 'May's second weeks work day range which is this result: 2015-05-04 - 2015-05-08