I need to be able to subtract 2 dates and get back the years and months between the 2.
Does anyone know of any easy ways to do this?
I have looked at the TimeSpan returned when subtracting dates but there is no ‘NumberOfYears’ etc option!
EDIT:
I have found the following article
http://www.codeproject.com/KB/datetime/TimePeriod.aspx?msg=4078849#xx4078849xx
it is awesome!
The best solution I have found is this code projects article:
http://www.codeproject.com/KB/datetime/TimePeriod.aspx?msg=4078849#xx4078849xx