Hi All,
I'm battling to get this query to work. I have a select form that allows user to select dates. When he submits it it needs to remove weekends from the request.
$DateStart='2013-09-01';
$DateStart='2013-09-05';
$DateSTR=strtotime($DateStart);
$DateSTO=strtotime($DateStop);
for($i=$DateSTR; $i<=$DateSTO; $i++){
$NewDate=strtotime($i);
$DateCalc=date('D', $NewDate);
$TotalCount++;
if($DateCalc == 'Sat' || $DateCalc == 'Sun'){
$WeekendDays++;
}
}
Regards