Site icon Database Tutorials

ISDATE Function in SQL Server(TSQL)

You can check the expression is a valid date, time or datetime value using ISDATE Function. This function’s return type is int.

Before using this function, be aware that;

You can control the expression with IF Clause and ISDATE function as follows. You can find detailed information about SET DATEFORMAT command in the article named “SET DATEFORMAT in SQL Server(TSQL)

Exit mobile version