this is not duplicate of How to get time part from SQL Server 2005 datetime in 'HH:mm tt' format
be cause all answers of that question returns 12:06PM (without space and need space)
I am trying to get only time part from SQL GETDATE()
and I am trying
SELECT LTRIM(RIGHT(CONVERT(VARCHAR(20), GETDATE(), 100), 7))
but it is returning
12:06PM
I need 12:06 PM (Space before AM or PM)..
search a lot but failed...