Hello guys,
I have a column of integer data type that contains a millisecond data(for example 54013). I want to convert this value to the corresponding "hh:mm:ss" format. Can anybody help me with this issue?
Sincerely,
amde
How about this
declare @.SomeMilliSecondsNumber bigint
select @.SomeMilliSecondsNumber =54013
select convert(varchar,dateadd(ms,@.SomeMilliSecondsNumber,0),114)
Denis the SQL Menace
http://sqlservercode.blogspot.com/
|||Thanks a lot Denis!
Amde
|||Glad I could help
Denis the SQL Menace
http://sqlservercode.blogspot.com/
No comments:
Post a Comment