Question: how to calculate age in years months and days in android?
Answer: Inputs are taken from datepicker. Look at this code here! public void onClick(View v) { int sday=d1. getDayOfMonth(); int smonth=d1. getMonth(); int syear=d1. getYear(); int eday=d2. getDayOfMonth(); int emonth=d2.