ckangas7
asked on
Expression for converting seconds to Hours and Minutes in SQL Reporting
Hi all,
Running SQL 2005 Reporting Services. I have a field in my report that shows total seconds. I would like to show that value as hours and minutes (ie 3:05 for 3 hours 5 minutes). Right now I have this expression:
=(Fields!TIMEINSECONDS.Val ue)\60) \60 & ":" & (Fields!TIMEINSECONDS.Valu e)\60) \60) \60
But this shows as 3:5
Is there a better expression to accurately get what I want?
Running SQL 2005 Reporting Services. I have a field in my report that shows total seconds. I would like to show that value as hours and minutes (ie 3:05 for 3 hours 5 minutes). Right now I have this expression:
=(Fields!TIMEINSECONDS.Val
But this shows as 3:5
Is there a better expression to accurately get what I want?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Awesome. Thanks.
I think you have to write a simple VB.NET function to return the string.