How to find number of days between two dates using PHP?
Used this :)
$days = (strtotime($endDate) - strtotime($startDate)) / (60 * 60 * 24); print $days;
Now it works