N
Nigel Findlater
Hallo Everyone,
I would like to find the difference in seconds between 2
times. So I did the following:
Dim x1 As DateTime = #5/26/2003 11:53:00 AM#
Dim x2 As DateTime = #5/26/2003 11:54:00 AM#
Dim TS1 As TimeSpan
TS1 = x2.Subtract(x1)
MessageBox.Show(TS1.Seconds.ToString)
But I end up with 0 and not 60 s
What did I do wrong?
Nigel...
I would like to find the difference in seconds between 2
times. So I did the following:
Dim x1 As DateTime = #5/26/2003 11:53:00 AM#
Dim x2 As DateTime = #5/26/2003 11:54:00 AM#
Dim TS1 As TimeSpan
TS1 = x2.Subtract(x1)
MessageBox.Show(TS1.Seconds.ToString)
But I end up with 0 and not 60 s
What did I do wrong?
Nigel...