Here's the code for this tag:
Code: Select all
$t=getdate();
$today = mktime(0,0,0,$t['mon'],$t['mday'],$t['year']);
$this_month_start = mktime(0,0,0,$t['mon'],1,$t['year']);
$next_month_start = mktime(0,0,0,$t['mon']+1,1,$t['year']);
$this_month_date = strtotime("2 Monday",$this_month_start);
$next_month_date = strtotime("2 Monday",$next_month_start);
if($today <= $this_month_date) {
$event_date = $this_month_date;
} else {
$event_date = $next_month_date;
}
print "Monday, ".date('F j, Y',$event_date)." 7:00pm St. Austin Center";