..


Sponsored Links

IsDate

The IsDate function, Boolean, returns true if the value is a date passatole and False otherwise.

The syntax is as follows:

 



 document.write (IsDate ("12/04/1978"))

 
The function returns True "IsDate" is frequently used to check whether the filtered value is a date or not, then perform different routines depending on the result, as in the following:





 Dim value







 value = "12/04/1978"







 If IsDate (Value) = False Then



   



 document.write ('E' a given ')







 Else



   



 document.write ("It's not a date")







 End If



Returns "is not empty."

The power of this feature, in addition to verification of the format simple and bare, you realize that if a date is likely or not.

For example:
 



 document.write (IsDate ("123/543/0078"))

 
returns False.

In the same category ...
E-Learning
ASP Zero (Ebook) ASP Zero (Ebook)
Learning Microsoft ASP and VBScript from scratch. At only 29 €.
Visual Basic 6 (Course) Visual Basic 6 (Course)
Make Desktop Applications with VB6. From 39 €.
Sponsored Links