Reputation:
need a expression to convert seconds into hh:mm:ss to use in a texbox of a local report (ASP.NET with Report Viewer)
Upvotes: 0
Views: 2395
Reputation: 195
This works even if hour part is >24hrs.
=right("0" & int(sum(Fields!Total_Login_Seconds.Value)/3600),2) & ":"
& right("0" & int((sum(Fields!Total_Login_Seconds.Value) Mod 3600)/60),2) & ":"
& right("0" & (sum(Fields!Total_Login_Seconds.Value) Mod 3600) Mod 60,2)
Upvotes: 1
Reputation: 437
you can write a vb syntax code to make calculations within the report, choose report textbox value property and write your vb code there
Upvotes: 0