Curriculum
Course: SQL
Login

Curriculum

SQL

SQL References

0/80

MySQL Functions

0/139

SQL Server Functions

0/84

SQL Quick Ref

0/1
Text lesson

IsDate

Example

Verify if the expression is convertible into a date format.

SELECT IsDate(Now());

Definition and Usage

The IsDate() function determines if an expression is convertible into a date, returning TRUE (-1) for a valid date and FALSE (0) for an invalid date.

Syntax

IsDate(expression)

Parameter Values

Parameter

Description

expression

Required: The value to be tested.

Technical Details

Works in:

From Access 2000

More Examples

Example

Return TRUE if the expression represents a valid date; otherwise, return FALSE.

SELECT IsDate(“Hello”);

Example

Return TRUE if the expression can be interpreted as a valid date; otherwise, return FALSE.

SELECT IsDate(“August 25, 2017”);

Example

Return TRUE if the expression is recognized as a valid date; otherwise, return FALSE.

SELECT IsDate(#25/8/2017#);