LoudASP Knowledge Base - ASP Functions
Some useful common functions that you will use a lot when programming in ASP
Date Difference
How can we find out how many days are between two dates?
Function DateDiff()
StartDate = #9/16/00#
EndDate = #1/23/10#
DateDiff("d",STARTDATE,ENDDATE)
'Or we can count down to a date by seconds
StartDate = NOW
EndDate = #1/1/01#
DateDiff("s",StartDate,EndDate)
This FAQ has been read 4719 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
|