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)
Another method using DATEPART built-in function:
DATEPART
SELECT cast(DATEPART(hour, GETDATE()) as varchar) + ':' + cast(DATEPART(minute, GETDATE()) as varchar)