formatting System.TimeSpan.

  • Thread starter Thread starter poppy
  • Start date Start date
P

poppy

I have something of type System.TimeSpan.

The problem I am having is that it displays as
Days:Hours:Minutes:Seconds
e.g. 1:17:03:56
and I want it to display the days as hours.
e.g. 41:03:56.

I have been trying for an hour now and am brain dead.

Any takers ?
 
That may format output but does not perform any conversion
for days to hours.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top