Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Help with PHP script – odd month, fourth Monday Re: Help with PHP script – odd month, fourth Monday

#86502
chadritchie
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'));
}
?>