"; $currentDateIs = date("Y/m/d"); $oldDates = '1977/10/24'; // Build example data $timeStart = strtotime($oldDates); $timeEnd = strtotime($currentDateIs); // Adding current month + all months in each passed year $numMonths = 1 + (date("Y",$timeEnd)-date("Y",$timeStart))*12; // Add/subtract month difference $numMonths += date("m",$timeEnd)-date("m",$timeStart); echo $numMonths/12; ?>