<?php
$birthDate = strtotime($rsPROFILE->getColumnVal("dogsdob"));
$ageInSeconds = time() - $birthDate;
$age = intval($ageInSeconds/(60*60*24*365));
$months = intval((($ageInSeconds/(60*60*24)) % 365)/12);
echo(strval($age) . " years " . $months . " months");
?>