title: asp.net mvc 5 html.DisplayFor DisplayFormat Display(Name) not working
body: <p><code>Html.DisplayFor</code> stopped displaying the display name and the formatted string... My code is bellow ... any ideas? i have searched around any couldn't find anything. thanks</p>
  
  <pre><code>[DisplayFormat(DataFormatString = "{0:MM/dd/yyyy}")]
  [Display(Name = "Date")]
  public DateTime EventDateTimeDay { get; set; }
  
  [Display(Name = "Seconds")]
  [DisplayFormat(DataFormatString = "{0:0.00} s")]
  public double Duration { get; set; }
  </code></pre>
  
  <p>Razor .cshtml:</p>
  
  <pre><code>@model IEnumerable&lt;OurClass&gt;
  ...
          &lt;th&gt;
              @Html.DisplayNameFor(model =&gt; model.EventDateTimeDay)
          &lt;/th&gt;
  
  ...
      @foreach (var item in Model)
      {
  ...
              &lt;td&gt;
              @Html.DisplayFor(modelItem =&gt; item.EventDateTimeDay)
              &lt;/td&gt;
  </code></pre>