Possible Duplicate:
How do I calculate someone's age in Java?
hi friends
i want to calculate total age of any registered person from birthdate to current date …i want to count total years and month and days in between birtdate and current date..
for example=birthdate=8th feb 2008
currentdate=8th april2011
so i want answer is =3 years ,2 months
Have a look at http://joda-time.sourceforge.net/ – it’s got a pretty nice API. I was using it the other week to do some work with dates. Hopefully it’ll have what you need.