How do I calculate someone's Age? [duplicate]
开发者_如何学运维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?
精彩评论