To get the difference between two dates we can uses the "Subtract" method. It is a parameterised method.
Check Here.
Instead of using it like:
Quote:
double age = Math.Round(System.DateTime.Now.Subtract.Tostring(birthDate.Text).TotalDays * 365.25, 2);
use it as:
double age = Math.Round(DateTime.Today.Subtract(new DateTime(1990, 07, 16)).TotalDays / 365.25, 2);
Hope it helps:)