MSSQLDate/Time FunctionsISDATE
CONVERT

ISDATEDate/Time Functions

SWITCHOFFSET

Returns whether a string is a valid date.

Syntax

ISDATE(str)

Example

Enter values below to update the example in real time.

is_valid
SELECT ISDATE('2024-06-27') AS is_valid;  -- 결과: 1