How do you calculate accumulative time in C#?

Posted by lima on Stack Overflow See other posts from Stack Overflow or by lima
Published on 2008-09-25T07:02:21Z Indexed on 2010/04/04 12:03 UTC
Read the original article Hit count: 339

Filed under:
|
|
|

I want to calculate the time span between 2 times which I saved in a database. So literally I want to know the length of time between the 2 values.

14:10:20 - 10:05:15 = 02:05:05

So the result would be 02:05:05.

How would I be able to achieve this using C#?

14:10:20 is the format I saved it in in my database.

© Stack Overflow or respective owner

Related posts about c#

Related posts about time