Compute time in C# ASP.NET?

  • Thread starter Thread starter sakura
  • Start date Start date
S

sakura

Guest
I'm making a program for school called the time recording system. It records the number of hours an employee spends per project. I have successfully computed the number of hours but it is in date time format(e.g. 00:55:20.43456). My program has this report generation module. It's gonna show like this:

Project Hours Spent
Project A 03:00:00
Project B 01:02:32.5432

Total number of hours spent today: <insert answer here>

Now my problem is...I can't find a way to add up the datetime format hours. Because the method that i enclosed in a loop did not work. How can i do add the hours?
 
Back
Top