How can I get the age of someone given the date of birth in a C# datetime.
I want a precise age like 40.69 years old
An approximite would be:
DateTime bd = new DateTime(1999, 1, 2); TimeSpan age = DateTime.Now.Subtract(bd); Console.WriteLine(age.TotalDays / 365.25);