DateValue
The DateValue function will convert an ASP string variable
into a date. If the string cannot be converted to a date value,
then a runtime error will be generated.
If you wish to check for this runtime error and prohibit the script
from throwing the error, you may wrap the DateValue function
with an error handler as shown in the example below:
Dim sDate, dDate
sDate = "02/29/2002" On Error Resume Next dDate = DateValue(sDate) If Err.Number <> 0 Then Response.Write "An error occurred with DateValue: " & sDate End If On Error Goto 0
|
 |

|