I want to get only hh:mm from date.
hh:mm
How I can get this?
I have tried this :
CONVERT(VARCHAR(8), getdate(), 108)
If you want to display 24 hours format use:
SELECT FORMAT(GETDATE(),'HH:mm')
and to display 12 hours format use:
SELECT FORMAT(GETDATE(),'hh:mm')