I\'m trying to figure out an elegant way to get a date from a text column that has data like this \"YYYYMMDD\"...so we might see \"20060508\" as a value in the column, which
try:
SELECT REPLACE(CONVERT(varchar(30),CONVERT(datetime, '20060508'),107),' 0',' ')
output:
------------------- May 8, 2006 (1 row(s) affected)