Question: how to calculate age difference between two dates in c#?
Answer: DateTime dob = Convert.ToDateTime("1988/12/20");
string text = CalculateYourAge(dob);
int age = CalculateAge(dob);
/// <summary>
/// For calculating age.
/// </summary>
/// <param name="Dob">Enter Date of Birth to Calculate the age</param>
/// <returns> years, months,days, hours...</returns>