title: Get DataFormatString formatted value from server side
body: <pre><code>class Report
  {
      [Display(Name = "Market Value")]
      [DisplayFormat(DataFormatString = "£ {0:#,##0}", ConvertEmptyStringToNull = true)]
      public int? MarketValue { get; set; }
  }
  </code></pre>
  
  <p>Of course it works in the view and the result is "£ 10,000"</p>
  
  <pre><code>@Html.DisplayFor(model =&gt; report.MarketValue)
  </code></pre>
  
  <p>How can I retrieve the formatted value via server side with something like this?</p>
  
  <pre><code>string formattedValue = report.MarketValue.ToFormattedString();
  </code></pre>
  
  <p>Thanks in advance!</p>