How to find 2nd and 4th Saturday of the month. I wrote these lines:-
echo "may 2nd sat ".date('d', strtotime('may 2013 second saturday'));
echo '<br/>may 4th sat '.date('d', strtotime('may 2013 fourth saturday'));
echo '<br/>june 2nd sat '.date('d', strtotime('june 2013 second saturday'));
echo '<br/>june 4th sat '.date('d', strtotime('june 2013 fourth saturday'));
It gives the following output :-
may 2nd sat 11
may 4th sat 25
june 2nd sat 15
june 4th sat 29
It gives correct answer in may
month but not june 2013
, in jun 1013
2nd and 4th saturday should be 8 and 22 respectively. How could I solve this issue.