Asp > Code Snippets
Check if a date is valid
Check if a date is valid
">
<% Dim strDate , blnValid , dteDate If Request.ServerVariables("CONTENT_LENGTH") <>0 Then strDate = Trim(Request.Form("date")) If isDate(strDate) Then dteDate = CDate(strDate) blnValid = True Else Response.Write "You entered an invalid date" End If If blnValid = True Then Response.Write "The date you entered was " & dteDate End If End If %>
Asp Codes
ActiveX
ADO
Array
Code Snippets
Components
Data Access
Date Time
Files
Graphics
HTML Formatting
Mathematics
Miscellaneous
Sessions
SQL
Strings
Techniques
XML