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