How to accurately get difference(in years) between two DateTime
objects in "Years"?
DateTime.Subtract()
gives difference in TimeSpan
and the maximum denomination is Days.
So, if I would want to get accurately, the difference between Today and a day in 1988(say 29th March 1988), is there an "easier" way to get the accurate age of this person?
What I've tried is:
DateTime March291988 = DateTime.Parse("29/03/1988");
TimeSpan ts = DateTime.Now.Subtract(March291988);
int years = (ts.Days/365);
More importantly, the question is: How to convert from TimeSpan to DateTime.