D Lng

D Lng

  • NA
  • 12
  • 4.9k

Formatting a [TimeSpan] result

Jan 18 2012 4:56 PM

Hi

Im trying to split up the result of a Timespan which is [ -109.03:04:36.1109827 ].

This is achieved via:

DateTime myFinish = DateTime.Parse("7/5/2012");
TimeSpan myLeft = DateTime.Now.Subtract(myFinish);

I have tried various string.format to seperate the result into Months Days Hours Minutes Seconds.

Im having no luck.

Can anyone point me down the right road please, much appreciated.


Answers (3)