MVC Jquery default datetime value
<pre><code>    @Html.EditorFor(model =&gt; model.ArriveDate)
</code></pre>

<p>I like to default a date from the viewbag into the EditorFor above.</p>

<p>So, I have the following:</p>

<p>in my jquery code:</p>

<pre><code> alert('@ViewBag.ArriveDate');

 $('#ArriveDate').val('@ViewBag.ArriveDate');
</code></pre>

<p>The alert shows: 8/31/2001 12:00:00AM so I know the date is coming in fine from the ViewBag. The issue is that the field is not populated through jquery.</p>
