I have the following code which examines 2 dates
$cidate = mktime(0, 0, 0, $dayFrm, $monthFrm, $yearFrm);
$codate = mktime(0, 0, 0, $dayTo, $monthTo, $yearTo);
$cidate = $yearFrm."-".$monthFrm."-".$dayFrm;
$date_diff = abs(strtotime(date($yearTo.'-'.$monthTo.'-'.$dayTo))-strtotime($cidate)) / 86400;
it then rounds off the dates into weeks
$getweeks = $date_diff / 7;
$weeks = ceil($getweeks);
it works fine until I put in 21st October 2008 to 28th October 2008
instead of returning 1 week its retrning 2
Anyone have any suggestions