ASP isDate Function

web

 
  Sponsored Links


The ASP isDate() function is used to check if a string contains a valid date.

isDate Function Arguments

String to be tested

ASP Coding for isDate Function

<%

sDateString = #12/12/12#
If isDate(sDateString) Then

Response.Write "Yes"

Else

Response.Write "No"

%>


Result

Yes

isDate Functions Results
isDate(#12/12/20#) Yes
isDate(#12/12/2020#) Yes
isDate(12/12/20) No
isDate(12/12/20) No
   
 
web

ReaLife WebDesigns / 310.371.3275
We appreciate having the opportunity to contribute to the success of your business!

© 1999-2010 ReaLife WebDesigns. All rights reserved. site map | terms of use