title: Html.HiddenFor formats DateTime incorrectly in ASP.NET
body: <p>I'm writing an ASP.NET MVC3 application in C# and have found that calling <code>Html.HiddenFor</code> in my view will render a <code>DateTime</code> differently (and incorrectly) to if i was to call <code>Html.DisplayFor</code>.</p>
  
  <p>The model its taking the value from does have a DisplayFormat decorator and this seems to work for <code>Html.DisplayFor</code>. The property in question is written as:</p>
  
  <pre><code>[DisplayFormat(DataFormatString = "{0:dd/MM/yyyy}", ApplyFormatInEditMode = true)]
  public DateTime MeetingStartDate { get; set; }
  </code></pre>
  
  <p>And the view displays this using:</p>
  
  <pre><code> @Html.DisplayFor(model =&gt; model.MeetingStartDate)
   @Html.HiddenFor(model =&gt; model.MeetingStartDate)
  </code></pre>
  
  <p>The DisplayFor call will render the date as <code>16/04/2012</code> however the HiddenFor will render it as  <code>value="04/16/2012 00:00:00"</code>.</p>
  
  <p>I've tried changing the current culture to set a <code>DateTimeFormat</code> but this had no effect.</p>
  
  <p>The current culture is en-GB so it shouldn't be printing en-US dates anyway.</p>