Convert seconds to hh:mm:ss format

Posted on 2009-04-22
Last Modified: 2012-05-06
Trying to convert a Time_Taken field that returns the number of seconds elapsed as a decimal into the hh:mm:ss format.  
=Format((Fields!Time_Taken.Value / 86400),"hh:mm:ss")

Open in new window

Question by:DotNetNooby
    LVL 14

    Expert Comment

    LVL 14

    Expert Comment

    Also you have some examples at

    Author Comment

    I don't think I can create a function in the expression box within my .rdlc file
    LVL 14

    Accepted Solution


    I haven't noticed it should be on .rdlc file.

    Please try this.

    =String.Format("{0:HH:mm:ss}",CDate("0:0:0").AddSeconds(Fields! Time_Taken.Value))

    Featured Post

    What Security Threats Are You Missing?

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    Join & Write a Comment

    Introduction Earlier I wrote an article about the new lookup functions ( that ship with SQL Server 2008 R2.  In this article I’m going to show you another new feature of SSRS 2008 R2, this time in the vis…
    Today, still in the boom of Apple, PC's and products, nearly 50% of the computer users use Windows as graphical operating systems. If you are among those users who love windows, but are grappling to keep the system's hard drive optimized, then you s…
    Hi everyone! This is Experts Exchange customer support.  This quick video will show you how to change your primary email address.  If you have any questions, then please Write a Comment below!
    In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor ( If you're interested in additional methods for monitoring bandwidt…

    754 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    20 Experts available now in Live!

    Get 1:1 Help Now