Quantcast
Viewing latest article 10
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 latest article 10
Browse Latest Browse All 16

Trending Articles