MS Access IsDate() Function
Example
Check whether the expression can be converted to a date:
SELECT
IsDate(Now());
Try it Yourself »
Definition and Usage
The IsDate() function checks whether an expression can be converted to a date.
This function returns a Boolean value. TRUE (-1) indicates that the expression is a valid date, and FALSE (0) indicates that the expression is not a valid date.
Syntax
IsDate(expression)
Parameter Values
Parameter | Description |
---|---|
expression | Required. The value to test |
Technical Details
Works in: | From Access 2000 |
---|
More Examples
Example
Return TRUE if the expression is a valid date, otherwise FALSE:
SELECT
IsDate("Hello");
Try it Yourself »
Example
Return TRUE if the expression is a valid date, otherwise FALSE:
SELECT
IsDate("August 25, 2017");
Try it Yourself »
Example
Return TRUE if the expression is a valid date, otherwise FALSE:
SELECT IsDate(#25/8/2017#);
Try it Yourself »
Copyright 1999-2023 by Refsnes Data. All Rights Reserved.