Formatting count of seconds to date format using SQL?

Original text of this message