Given a DateTime representing a person\'s birthday, how do I calculate their age in years?
DateTime
TimeSpan diff = DateTime.Now - birthdayDateTime; string age = String.Format("{0:%y} years, {0:%M} months, {0:%d}, days old", diff);
I'm not sure how exactly you'd like it returned to you, so I just made a readable string.