SQL Server > Date Time related

Check for valid date in SQL Server

How to check for valid date in SQL Server?


To check for a valid date, we can use IsValid function by passing the date string or a date value.

SELECT
ISDATE('15/16/2015') InValidDate,
ISDATE(GETDATE()) ValidDate

 Views: 12626 | Post Order: 75



Write for us






Hosting Recommendations