Given a DateTime representing a person\'s birthday, how do I calculate their age in years?
DateTime
Here's a one-liner:
int age = new DateTime(DateTime.Now.Subtract(birthday).Ticks).Year-1;