convert int to timestamp

  • Hi all,

    I have column with int data type and the it contains data such as

    47154. I think it is in Seconds and i need to convert it to time stamp such as

    00:00:00 hh:min:sec!!

    how can it do that i am blank on this!!

    Thanks

  • select dateadd(ss, 47154, 0 )

    ss being seconds

    47154 being you time offset.

    0 being a date of some sort (0 = 01-01-1900)

    search bol for dateadd / convert and you should be able to pull what you need.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply