I need to convert a string values that are mm:ss (examples - "6:12", "59:59", "6:6") and sum them up that are in hh:mm:ss formatted value.
At the moment i'm trying to do a simple thing, but it is throwing me this exception:
"System.FormatException: 'Input string was not in a correct format.'"
Here's the example of the code:
string time = "6:14";
TimeSpan ts = TimeSpan.ParseExact(time, "mm:ss", null);
string total = ts.ToString("hh:mm:ss");