Do you want to store the "converted" value in the database or simply display the formatted value to the user?If you want to store it:There is not [Time] datatype. I think you choices would be a [datetime] using any date as the date component: '1900-01-01 09:50:00.000' or [varchar] which would make the value useless for anything but presenting.(khtan provided a solution for converting to datetime)Is the time based on a 24 hour clock? so 1:00 PM is 1300? If you want to just display it to the user as a formatted time value then you should use the frontend application for that.Now that I've preached the "what you should do"...How about: declare @i int, @time varchar(4)set @i = 950set @time = convert(varchar, @i)select reverse(stuff(reverse(@time), 3, 0, ':'))output:----- 9:50
Be One with the OptimizerTG