ISDATE
checks if the specified expression is a valid date, time, or datetime value.
ISDATE
returns 1 for true and 0 for false.
This example checks whether the input value is a valid date.
SELECT ISDATE('2022-08-03') AS 'Is Date'
Is Date |
---|
1 |
Syntax of the ISDATE function .
ISDATE(expression)
expression
-- a string or expression less than 4,000 characters.
SELECT ISDATE('09,01,21') AS 'Is Date'
Is Date |
---|
0 |