Last updated 1 year ago
This user-defined function (UDF) determines whether the input value is a valid date.
DATE_VALUE STRING
DATE_VALUE
The date that is going to be evaluated.
Returns 1 when the input expression evaluates to a valid date data type; otherwise, it returns 0.
Input:
Output:
ISDATE_UDF(DATE_VALUE STRING)
SELECT ISDATE_UDF('2024-01-26');
1