p2p.wrox.com Forums

Need to download code?

View our list of code downloads.

  Return to Index  

proasp_howto thread: Dates

Message #1 by "Matthew Lohr" <mlohr@t...> on Thu, 1 Mar 2001 13:09:21 -0500
I knew it was dumb i was using datdiff as my variable and in my function.

-----Original Message-----
From: Joe Sabado [mailto:joe.sabado@g...]
Sent: Thursday, March 01, 2001 1:35 PM
To: How To
Subject: Re: Dates

Are you maybe looking for the DateDiff function?

DateDiff(interval, date1, date2 [,firstdayofweek[, firstweekofyear]])

yyyy - Year
q - Quarter
m - Month
y - Day of year
d - Day
w - Weekday
ww - Week of year
h - Hour
n - Minute
s - Second

go to www.microsoft.com/scripting
then click on vbscript-->documentation-->language reference-->alphabetic
keyword list

  Return to Index