I want to calculate total number of working days in between two date. Here we include second and fourth Saturday as working day(i.e all Even Saturdays are considered as Holiday) I can get the day of the particular date by using below code
$day = ‘2015-11-07’;
$dayName = date("l",strtotime($day));
if ($dayName =='saturday') {
...
}
then I have to find whether that particular date falls under first Saturday of November or second Saturday. Is there any option in doing that?
I have the code to calculate total number of days excluding all Saturdays,Sunday and holidays. I got that code from another question
But I want to identify even saturdays and I will detect that saturdays in total days.