Consider that i have list dtArray1
that consist of DateTime
items I mean 10.10.2010
, 10.10.2015
and so on.
Could u say me how find subract of this element ? How i can get diffeerence between 2 years?
for (Int32 index = 1; index < dtArray1.Count;index++)
{
if (dtArray1[index] >= dtArray1[index - 1])
{
dtArray1[index].Subtract(dtArray1[index - 1]);
Console.WriteLine(dtArray1[index]);
Console.ReadLine();
}
}