IsDate Function


IsDate Function

Class

Microsoft.VisualBasic.Information

Syntax

     Dim result As Boolean = IsDate(expression) 


expression (required; any)

Expression containing a date or time

Description

The IsDate function determines if an expression can be interpreted as a date without error (true) or not (False).

Usage at a Glance

  • Uninitialized Date variables return true.

  • IsDate uses the regional settings of the local system to determine if the value is recognizable as a date. What is a legal date format on one machine may fail on another.

See Also

CDate Function




Visual Basic 2005(c) In a Nutshell
Visual Basic 2005 in a Nutshell (In a Nutshell (OReilly))
ISBN: 059610152X
EAN: 2147483647
Year: 2004
Pages: 712

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net