...

View Full Version : comparing times



esthera
01-02-2008, 12:31 PM
i have a time in a strtime in the fomrat of 3:00 am

how can i check and

if time>strtime then
' do this
end if

Roelf
01-02-2008, 12:39 PM
Use the TimeValue (http://www.devguru.com/technologies/vbscript/13982.asp) function to convert your string to a Time object.

If Time > TimeValue(strtime) Then
'do this
End If



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum