Possible Duplicate:
How do I calculate someone's age based on a DateTime type birthday?
I want to write an ASP.NET helper method which returns the age of a person given his or her birthday.
I've tried code like this:
public static string Age(this HtmlHelper helper, DateTime birthday)
{
return (DateTime.Now - birthday); //??
}
But it's not working. What is the correct way to calculate the person's age based on their birthday?