I\'m querying a database like so:
SELECT DISTINCT CASE WHEN CreatedDate = \'1900-01-01 00:00:00.000\' THEN \'\' ELSE CreatedDate END AS CreatedDate FROM Lit
Two nitpicks. (1) Best not to use string literals for column alias - that is deprecated. (2) Just use style 120 to get the same value.
CASE WHEN CreatedDate = '19000101' THEN '' WHEN CreatedDate = '18000101' THEN '' ELSE Convert(varchar(19), CreatedDate, 120) END AS [Created Date]