Quantcast
Viewing all articles
Browse latest Browse all 16

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

Try this:

case
when v.value is not null and rtrim(ltrim(v.value)) <> '' and isdate(v.value) = 1  then try_Convert(varchar(20),v.value ,100)
else v.value
end


Viewing all articles
Browse latest Browse all 16

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>