|
Subject:
|
using the server's time?
|
|
Posted By:
|
budman
|
Post Date:
|
12/15/2003 7:30:26 PM
|
How do I use the server's time and date as variables in an if statement? for example:
if 'server's date here' = 'some preset date' Then Response.Redirect...etc. End if
Also, what format is the date in? Let's say I would want to redirect to a certain page depending on whether the date was even or odd. How would I do this?
|
|
Reply By:
|
stu9820
|
Reply Date:
|
12/16/2003 2:07:36 PM
|
the format depends on the whatever date function you use.
Now() returns 12/16/2003 2:06:55 PM
for the even and odd you will have to pull out the day number and run maybe a SELECT CASE statement.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/script56/html/vsfctdate.asp
|