Currently I have a column Column1 in SQL Table1 that has datatype datetime, where the data is displayed as 1899/12/30 4:59:00 PM.
I have a query:
CONVERT(varchar(8), dbo.Table1.Column1,8) AS HoursUpdation
This gives me just the Hours as 4:59:00
But I do not want to see the seconds also.
I just want it in the format HH:MM
Can anyone please let me know the way to achieve this?
Thank you,
notes4we