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
You could do this:
Console.WriteLine(DateTime.Now.Date.Subtract(new DateTime(1980, 8, 1)).TotalDays / 365.25);