I want to convert getdate() from say something like this format '2003-07-31 15:16:32.937'(default value) to '7/31/2003 3:16:32 PM'. I tried to convert to varchar with various styles but no style returns the above output. The closest I came was
select CONVERT(varchar(50) ,getdate(),100) which returned - 'Jul 31 2003 3:16PM'. Help would be greatly appreciated.