VBScript Function Reference for Classic ASP

Last updated: August 27, 2026.

VBScript includes string, date, numeric, conversion, formatting, and type-checking functions.

CategoryExamples
StringsLen, Trim, Replace, InStr
DatesDate, Now, DateAdd, DateDiff
ConversionCStr, CLng, CDbl, CDate
TestingIsNull, IsNumeric, IsDate
<%
Dim displayName
displayName = Trim(CStr(Request.Form("name")))
If Len(displayName) = 0 Then displayName = "Visitor"
Response.Write Server.HTMLEncode(displayName)
%>

Validate before converting because conversion functions can raise type errors.

admin

admin

Leave a Reply

Your email address will not be published.