hi,
i need to calculate the time difference in hours between two dates that also has the hours.
the data is formatted as follows:
02/04/10 15:00
what am i missing?
thanks
zach
i need to calculate the time difference in hours between two dates that also has the hours.
the data is formatted as follows:
02/04/10 15:00
Code:
Dim Sessions, System As Object, Sess0 As Object,Sess As Object
Set System = CreateObject("EXTRA.System")
Set Sessions = System.Sessions
Set Sess0 = System.ActiveSession
Set Sess = Sess0.Screen
begtime = trim(Sess.GetString (2,63,14))
endtime = trim(Sess.GetString (3,63,14))
[blue]timedif = endtime - begtime 'i'm getting a type mismatch. [/blue]
msgbox timedif
what am i missing?
thanks
zach