Last updated: August 27, 2026.
VBScript includes string, date, numeric, conversion, formatting, and type-checking functions.
| Category | Examples |
|---|---|
| Strings | Len, Trim, Replace, InStr |
| Dates | Date, Now, DateAdd, DateDiff |
| Conversion | CStr, CLng, CDbl, CDate |
| Testing | IsNull, 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.