Try Using the Function DateDiff. It can tell you the time difference between 2 dates by either Days,Hours,Minues,seconds, etc.
Try something like.
- Code: Select all
if DateDiff("d", Date(), "1/1/2000") < 11 then
Response.Write "WooTWooT"
end if
Double check the Output values, Cause I might have the Date check in flipped. Oh Well.
Full Documentation at:
http://www.devguru.com/Technologies/.../datediff.html
Dont forget to check out VBScript Complete Reference at
http://www.devguru.com/Technologies/...ript_list.html
A LiNK you ShoULD always have on hand. (Also check out WSH Reference Section, Start Coding some of those Nasty email wormz :razz
