How can I calculate the age at death?
<blockquote>
  <p><strong>Possible Duplicates:</strong><br>
  <a href="http://stackoverflow.com/questions/453208/how-can-i-calculate-the-age-of-a-person-in-year-month-days">How can I calculate the age of a person in year, month, days?</a><br>
  <a href="http://stackoverflow.com/questions/5194216/how-can-i-calculate-the-difference-between-two-dates">How can I calculate the difference between two dates</a>  </p>
</blockquote>



<pre><code>SimpleDateFormat formatter = new SimpleDateFormat("dd-MM-yyyy");
if(petDetails.getDateOfDeath() != null){
    String  formatedDateOfDeath = formatter.format(petDetails.getDateOfDeath());
    String formateDateOfBirth = formatter.format(petDetails.getDateOfBirth());
}
</code></pre>

<p>How can i calculate the age of death from the above. I dont want to use any externallibraries</p>

<p><strong>EDIT:</strong> please look at what I've got so far.none of the other threads are like mine. most of them are about date from DOB to today and not in the format im using.</p>
