How can TIME data type be formatted? Thanks.
DECLARE @t char(4) = '1600'; DECLARE @tm time = STUFF(@t,3,1,':'); SELECT @t, @tm, FORMAT(@tm, 'hh:mm:ss', 'en-US') -- 1600 16:00:00.0000000 NULL
Kalman Toth Database & OLAP Architect
IPAD SELECT Query Video Tutorial 3.5 Hours
New Book / Kindle: Exam 70-461 Bootcamp: Querying Microsoft SQL Server 2012