$now = time(); // or your date as well $your_date = strtotime("1983-01-01"); $datediff = $now - $your_date; $days = round($datediff / (60 * 60 * 24)); ?>