开发者

How do I calculate someone's Age? [duplicate]

开发者 https://www.devze.com 2023-01-10 01:58 出处:网络
This question already has answers here: Closed 12 years ago. 开发者_如何学运维Possible Duplicate:
This question already has answers here: Closed 12 years ago.
开发者_如何学运维

Possible Duplicate:

How do I calculate someone’s age in C#?

How do I calculate someone's age in C#, if I have their Birthdate and today's date?


From MSDN: http://msdn.microsoft.com/en-us/library/system.timespan_members(v=VS.71).aspx

Timespan contains members for Days, Hours, Minutes, Seconds, Milliseconds, and Ticks. How accurate do you want it to be?

0

精彩评论

暂无评论...
验证码 换一张
取 消