$start = '2013-09-08'; $end = '2013-09-15'; $diff = (strtotime($end)- strtotime($start))/24/3600; echo $diff;