How to find number of days between two dates using PHP?
Easy to using date_diff
$from=date_create(date('Y-m-d')); $to=date_create("2013-03-15"); $diff=date_diff($to,$from); print_r($diff); echo $diff->format('%R%a days');