May 06 2024 02:43 PM
I am using isdate function to verify after extracting the first 8 chars from a sting.
isdate() returned 1 with the example below and my following code failed to calculated a Datediff().
Declare @Mystr varchar(29)
SET @Mystr='05/020/2'
Select IsDate('05/020/2')
Is there any other similar function in SQL?
Thanks in advance for any idea.
May 06 2024 10:24 PM
May 07 2024 09:27 AM
May 07 2024 10:54 AM
May 07 2024 10:56 AM