LoudASP Knowledge Base - ASP Functions
Some useful common functions that you will use a lot when programming in ASP
DateAdd Function
Adds or subtracts a time interval to a date and gives you back the
new date.
Function Name: DateAdd
Syntax:DateAdd(interval, number, date)
interval - can have these values:
d day
h hour
m month
n minute
q quarter
s second
w weekday
ww week of year
y day of year
yyyy year
number is a positive number of time you want to add to the date if number
is negative then that number will be subtracted from the date
Example: DateAdd("m", 3, "1-MAY-98")
This example will add 3 months to May 1st 1998
Output:1-AUG-98
This FAQ has been read 3812 times.
Ucase Function
UBound Function
Split Function
Replace Function
Minute Function
Mid Function
Mail Function
Length of a String
Isnumeric Function (Checking for numbers)
Is Prime Function
DateAdd Function
Date Difference
CInt Function
Character Codes / Dealing with
ASP Function Making
|