I want to get the year but there is no TotalYears
in the DateTime so im trying my luck here.
what i'm doing is im inputting a date from the form like this
DateTime acquisition = DateTime.Parse(Request.Form["inputAcquisition"]);
Then the date today so it will subtract to the acquisition date.
DateTime now = DateTime.Now;
Now this is the part that's getting me confused. subtracting them
TimeSpan difference = now - acquisition ;
I'm receiving some value but it's like a gibberish of 2819:012:23123:1246
// not actual data.
How can I just get the total difference of the year? If i Input March 20, 2014, subtract to year today I will get 3
as an output?