开发者

How do I calculate someone's Age? [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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜