date - PHP get number of week for month - Stack Overflow
public function getWeeks($timestamp) { $maxday = date("t",$timestamp); $thismonth = getdate($timestamp); $timeStamp = mktime(0,0,0,$thismonth['mon'],1,$thismonth['year']); //Create time stamp of the first day from the give date. $startday = date ......