title: Format timespan as TotalMilliseconds
body: <p>I am writing a simple ASP.Net page, where I have several fields, one of them is for timeout. I want to display it as milliseconds (but still want to have a timespan instead of int/string). I am writing following code:</p>
  
  <pre><code>&lt;input asp-for="Entry.Interval" asp-format="{0:fff}" type="text" class="form-control"&gt; 
  </code></pre>
  
  <p>But here is a problem. This format is not working as expected. I expect <code>TimeSpan.FromMinutes(2).ToString("fff")</code> to return <code>120000</code>, but it returns <code>000</code>. It's obviosly becuase <code>TimeSpan</code> uses <code>Milliseconds</code> property, which is zero in this example, but I need <code>TotalMilliseconds</code>. </p>
  
  <p>Is there some format which force to show entire <code>TimeSpan</code> in desired units? I really don't want to write an integer field and map it manually on this <code>TimeSpan</code>.</p>