Skip to content

VBScript DateDiff

by admin on May 25th, 2011

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

Notes:

1. interval ‘m’ stands for month, use ‘n’ for seconds

2. returns a negative nubmer if date1 < date2, otherwise, positve

Parameter Description
interval The interval you want to use to calculate the differences between date1 and date2
Can take the following values:

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

From → Oracle

No comments yet

Leave a Reply

Note: XHTML is allowed. Your email address will never be published.

Subscribe to this comment feed via RSS