I have start time & end time how do I compare if startTime< endTime?
my code:
EndTime=oRs("TimeSessionStarted"
<%if (oRs("TimeSessionStarted"
< EndTime ) then%>
it doesn't work-the endTime is equal to TimeSessionStarted and it's going into this statement-so it's probably not the correct way to compare it (I even tried decreasing end time by:
EndTime=DateAdd("n", -1, oRs("TimeSessionStarted"
)%>
and then testing it-but I still got into the if statement.
I'd appreciate if anyone can help me-or direct me to a good website where I can find out the info
Thanks
my code:
EndTime=oRs("TimeSessionStarted"
<%if (oRs("TimeSessionStarted"
it doesn't work-the endTime is equal to TimeSessionStarted and it's going into this statement-so it's probably not the correct way to compare it (I even tried decreasing end time by:
EndTime=DateAdd("n", -1, oRs("TimeSessionStarted"
and then testing it-but I still got into the if statement.
I'd appreciate if anyone can help me-or direct me to a good website where I can find out the info
Thanks