start date/time, end date/time problem
Have, I hope, a quick question.
I need to display something between a start date and time, and an end date
and time. In other words:
strStartDate = CDate("12/16/01 15:00")
strEndDate = CDate("12/16/01 23:30")
If (Now() >= strStartDate) AND (Now() <= strEndDate) Then
Response.Write "display a graphic"
End If
I can't seem to make this work. I don't think it's possible to do this with
both a date and time the way I have it here, but I've done a bunch of
searching and can't find anything about doing something in between two dates
and times.
Datediff doesn't handle time. Seems like the date and times need to be
converted to something else first. Don't know.
If you respond to me directly, please remove the word REMOVE from my email
address.
Thanks!
Doug