Calculating Age from Date of Birth

Here's how to calculate a person's age given their date of birth.

int age = DateTime.Now.Year - bday.Year;

if (DateTime.Now < bday.AddYears(age)) 
    age--;