Link to home
Start Free TrialLog in
Avatar of ckangas7
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.Value)\60) \60 & ":" & (Fields!TIMEINSECONDS.Value)\60) \60) \60

But this shows as 3:5

Is there a better expression to accurately get what I want?
Avatar of Raju Srivatsavaye
Raju Srivatsavaye
Flag of United States of America image

Hi,

I think you have to write a simple VB.NET function to return the string.
ASKER CERTIFIED SOLUTION
Avatar of Raju Srivatsavaye
Raju Srivatsavaye
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of ckangas7
ckangas7

ASKER

Awesome.  Thanks.