I created a TimeSpan
this way
TimeSpan ts = new Timespan();
// Do some addition and subtraction on it
Then I am saving it to a file using this
string.Format("{0}:{1}:{2}:{3}", ts.Hours, ts.Minutes, ts.Seconds, ts.MilliSeconds);
Various values returned from it are like this
0:0:4:410
0:0:1:425
0:0:1:802
0:0:1:509
0:0:1:674
0:0:1:628
0:0:2:76
How to convert it back to TimeSpan.
I am using
TimeSpan.ParseExact("0:0:4:410", "h:m:s:fff", null);
but it is giving me error Input String is not in correct format.
Where am I wrong?