Thread: Date Difference
View Single Post
  #4 (permalink)  
Old Aug 22nd, 2003, 03:57
vor vor is offline
Junior Member
Join Date: Aug 2003
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
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