View Full Version : comparing times

01-02-2008, 11:31 AM
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

01-02-2008, 11:39 AM
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