title: How to format TimeSpan to string before .NET 4.0
body: <p>I am compiling in C# using .NET 3.5 and am trying to convert a TimeSpan to a string and format the string. I would like to use </p>
  
  <p><code>myString = myTimeSpan.ToString("c");</code></p>
  
  <p>however the <code>TimeSpan.ToString</code> method does not take a format string as an argument until .NET 4.0 and I am using .NET 3.5.</p>
  
  <p>How then would you format a TimeSpan as a string? My final goal is to display the TimeSpan in format <code>hh:mm:ss</code> but am currently receiving <code>hh:mm:ss:fffffff</code>.</p>
  
  <p>I have tried using</p>
  
  <p><code>myString = string.Format("{0:hh:mm:ss}", myTimeSpan);</code></p>
  
  <p>but string.Format is only formatting my DateTime and passing different format strings doesn't work when trying to format a TimeSpan.</p>