SyntaxFix
Write A Post
Hire A Developer
Questions
With SQL Server 2005, I would use this:
select replace(convert(char(10),getdate(),102),'.',' ')
Results: 2015 03 05