I have two variables :
Dim starttime As TimeSpan
Dim endtime As TimeSpan
My starttime value is : 02:30:00 (I mean 2.30AM)
2.30AM is next day
My endTime Value is : 10:30:00(I mean 10.30Am)
I want to get time difference of these. So I have code like this:
Dim span3 As TimeSpan = starttime .Subtract(endtime )
Now I am getting span3 : 08:00:00
This is wrong answer. Actually I want to get 16:00:00. (this is the exact differnce between 2.30Am To 10.30 Am)
How I can calculate this?