SyntaxFix
Write A Post
Hire A Developer
Questions
Try this:
Declare @dt NVARCHAR(20) Select @dt = REPLACE(CONVERT(CHAR(15), SalesDate, 106),' ',' - ') FROM SalesTable