SyntaxFix
Write A Post
Hire A Developer
Questions
You could do it this way but it leaves it as a varchar
declare @s varchar(50) set @s = '2011-09-28 18:01:00' select convert(varchar, cast(@s as datetime), 105) + RIGHT(@s, 9)
or
select convert(varchar(20), @s, 105)