title: Set hidden field using HTML Helper to Date Time Now
body: <p>I'm looking to do something in ASP.NET MVC 5 to set a hidden field to current date and time. Something like:</p>
  
  <pre><code>    @Html.HiddenFor(model =&gt; model.CommentTime, new { @Value=DateTime(Now) })
  </code></pre>