I want to convert string time '141312110' to this: '14:13:12.110'
Actually, I have bigint column has data like '20151110182425000' I want to convert them to datetime format like
'10-11-2015 18:24:25.000'
I divided them to date and time to get date part used this :
Convert(varchar(10), convert(datetime, '20151110'),105)
Result : '10-11-2015'
And needed to get time part like that.
sql-servertag based on the usage ofconvert()anddatetime