I'm a bit rusty and seem to have completely forgot how to do this. I am receiving data and the datatime column is in string format char(12)
.
Example : 201411061900
How would I write the query (view) to convert that to DateTime
?
I've used CONVERT (datetime, dbo.KWH.mr_dtm,120)
, but I get the error Conversion failed when converting date and/or time from character string.
I haven't had much luck. Thank you very much in advance.
If you want to suggest -5 time zone also, I wouldn't mind. :)