3
Answers

Time difference in c#

priyanka

priyanka

6y
582
1
I need to find two time difference result in my project When I am using Timespan t1 = new Timespan(6:00:00) Timespan t2 = new TImespan(13:00:00)Now when I need to calculate the resultTimespan result=t1-t2; It showing 7 hours,its fineBut when I am using Timespan t1=. new Timespan(22:00:00) Timespan t2 = new TImespan(6:00:00) Now when I need to calculate the result Timespan result=t1-t2; It showing 16 hours Can u guys explain the reason behind this
Answers (3)