ASP Built In Functions
Home
Search
Tell a Friend

ABS()
Array()
ASC()
CHR()
CInt()
CStr()
Date()
DateAdd()
DateDiff()
DatePart()
DateSerial()
DateValue()
Day()
Fix()
FormatCurrency()
FormatDateTime()
FormatNumber()
FormatPercent()
Hour()
InStr()
InStrRev()
Int()
IsArray()
IsDate()
IsEmpty()
IsNull()
IsNumeric()
IsObject()
Join()
LBound()
LCase()
Left()
Len()
LTrim()
Mid()
Minute()
Month()
MonthName()
Now()
Replace()
RGB()
Right()
Rnd()
Round()
RTrim()
Second()
Space()
Split()
Sqr()
strComp()
String()
StrReverse()
Time()
TimeSerial()
TimeValue()
TypeName()
UBound()
UCase()
VarType()
WeekDay()
WeekDayName()
Year()


DateAdd()
Purpose:
Returns a date to which a specific time interval has been added.
DataType:
Date/Time
Syntax:
DateAdd(timeinterval,number,date)
Arguments:
"timeinterval" is the time interval to add;
"number" is amount of time intervals to add;
"date" is the starting date.
Sample:
response.write DateAdd("h", 3, Now)
Result:
9/9/2010 3:54:46 AM

Comments:
Date/Time returned is the SERVER date/time, not your computer date/time. Refer to the time interval table below for the argument.
Date Added: 1/9/2001
Interval Description Interval Description
yyyy Year q Quarter
m Month y Day of year
d Day w Weekday
ww Week h Hour
n Minute s Second

My3C's
perrychicker
It's easy... it's a PSACAKE!
Back | Tell A Friend | Search this Site
© 1998 - 2010 psacake.com
Version 3.23

Send me One Million FREE Guaranteed Visitors