Quantcast
Channel: Conversion failed when converting date and/or time from character string
Viewing all articles
Browse latest Browse all 16

Conversion failed when converting date and/or time from character string

$
0
0
I tried the following but still get the same error.
case
	when v.value is not null and rtrim(ltrim(v.value)) <> '' and isdate(v.value) = 1  then try_cast(v.value as datetime)
	else v.value
end


Viewing all articles
Browse latest Browse all 16

Trending Articles