T
Tim
In an ASP web page I am trying to calculate a value in seconds from
two date and times. Can anyone help me find the correct syntax to make
this work?!?!
(This code below work correctly)
DetectionTime=#7/30/03 10:36:45 AM#
MyTime=#7/30/03 10:36:45 PM#
TTClose=(MyTime)-(DetectionTime)
TTTClose=(((TTClose*24)*60)*60)
(This code does not work)
DetectionTime=" # " & RS("DetectionTime") & "# "
MyTime = "#" & FormatDateTime(Now,2) & " " & Time & "#"
TTClose=(MyTime)-(DetectionTime)
TTTClose=(((TTClose*24)*60)*60)
(Error message)
Microsoft VBScript runtime error '800a000d'
Type mismatch: '[string: "#7/31/03 9:41:21 AM#"]'
/mcDevtest/Calculate.asp, line 18
two date and times. Can anyone help me find the correct syntax to make
this work?!?!
(This code below work correctly)
DetectionTime=#7/30/03 10:36:45 AM#
MyTime=#7/30/03 10:36:45 PM#
TTClose=(MyTime)-(DetectionTime)
TTTClose=(((TTClose*24)*60)*60)
(This code does not work)
DetectionTime=" # " & RS("DetectionTime") & "# "
MyTime = "#" & FormatDateTime(Now,2) & " " & Time & "#"
TTClose=(MyTime)-(DetectionTime)
TTTClose=(((TTClose*24)*60)*60)
(Error message)
Microsoft VBScript runtime error '800a000d'
Type mismatch: '[string: "#7/31/03 9:41:21 AM#"]'
/mcDevtest/Calculate.asp, line 18