从当前日期计算年龄

从当前日期计算年龄

本文介绍了从当前日期计算年龄的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hai先生,

i分配来计算当前日期的年龄,我有员工的出生日期,我必须动态计算年龄,

i refer google让我很困惑。请给我一些想法先生

Hai sir,
i assigned to calculate the age from current date ,i have the date of birth of employee from that i have to calculate the age dynamically,
i refer to google it was confusing me .please give some idea to do sir

推荐答案



那么问题是什么?

你觉得难以计算吗?或编写代码?

首先学习计算。

告诉我们如果你的数学课上有问题,你会如何计算?发布公式。

so what is the problem?
are you finding it difficult to calculate? or to write the code?
first learn the calculation.
tell us how would you calculate if the question was there in your mathematics class? post the formula.




查看,尝试一些代码,如果还有问题再次发帖。

Have a look at java.util.GregorianCalendar, try some code, and post again if you still have problems.




ok先生我会尝试做那个

ok sir i will try tot do that


这篇关于从当前日期计算年龄的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-05 19:31