根据生日计算距离今天几年几个月几天
Date birthday = xxxxxxxx
Calendar now = Calendar.getInstance();
Calendar b = Calendar.getInstance();
b.setTime(birthday);
int year = now.get(Calendar.YEAR) - b.get(Calendar.YEAR);
int month = now.get(Calendar.MONTH) - b.get(Calendar.MONTH);
int day = now.get(Calendar.DAY_OF_MONTH) - b.get(Calendar.DAY_OF_MONTH);
if (month < 0) {
month = 12 - b.get(Calendar.MONTH) + now.get(Calendar.MONTH);
year -= 1;
}
if (day < 0) {
day = b.getMaximum(Calendar.DAY_OF_MONTH) - b.get(Calendar.DAY_OF_MONTH) + now.get(Calendar.DAY_OF_MONTH);
month -= 1;
}
// year + "岁" + month + "个月" + day + "天";