Código PHP:
<?php
$date = date("Y/n/d");
$activationdate = date("Y/n/d", strtotime ($row_Members['EFFECTIDAT']));
$years= date("Y", strtotime("now")) - date("Y", strtotime($activationdate));
//
if (date ("Y", strtotime($date)) == date ("Y", strtotime($activationdate))){
$months = date ("m", strtotime($date)) - date ("m", strtotime($activationdate));
}
elseif ($years == "1"){
$months = (date ("m", strtotime("December")) - date ("m", strtotime($activationdate))) + (date ("m"));
}
elseif($years >= "2"){
$months = ($years*12) + (date ("m", strtotime("now")) - date ("m", strtotime($activationdate)));
}
echo $months.' months '.$years;
?>
Ray