How do I get the time difference between two DateTime objects using C#?
DateTime
You can use in following manner to achieve difference between two Datetime Object. Suppose there are DateTime objects dt1 and dt2 then the code.
TimeSpan diff = dt2.Subtract(dt1);