Click here to Skip to main content
15,902,198 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello,

I have a RDLC report where I need to do the addition the time in hh:mm:ss format.

Values are as under :

suppose time to complete a task is
(1st task)  01:00:00
(2nd task))+ 01:10:00
 ------------
Total    = 02:10:00


Please help me to calculate it.Also i want the format which i can set in property in format column.

you can send me the same code on honey.jagyasi@gmail.com

Thank you.
Posted
Updated 4-Dec-11 14:44pm
v2
Comments
[no name] 4-Dec-11 20:44pm    
EDIT: added "pre" tag

You have to add this expression in your report

=TimeSpan.FromTicks(Sum(TimeSpan.Parse(Fields!DurationTime.Value)))
 
Share this answer
 
Comments
DanielTorresR 23-Apr-20 13:32pm    
Thank you a Lot!
this solution works form me.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900