Home › Forums › JavaScript › Help with PHP script – odd month, fourth Monday › Re: Help with PHP script – odd month, fourth Monday
September 6, 2011 at 11:58 am
#86502
Member
Never mind, problem solved with a couple work arounds.
//define this month
$month = date ('m');
if ($month % 2) {
//if its odd then show 4th Monday
echo date('F d', strtotime('third Monday'));
}
else{
//its even no meeting this month show next months meeting
echo date('F d', strtotime('third Monday +4 week'));
}
?>