Name

IsDate Function — Microsoft.VisualBasic.Information

Synopsis

IsDate(expression)
expression required; any

Expression containing a date or time

Return Value

Boolean indicating whether the expression can be converted to a Date

Description

Determines if an expression is of type Date or can be converted to type Date

Returns True if expression is of type Date or can be converted to type Date. Uninitialized date variables also return True.

Get VB.NET Language Pocket Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.