title: jQuery DatePicker plugin format date and ASP.NET MVC Get request
body: <p>I have an asp.net mvc project with jQuery DatePicker controls. My page looks like this:</p>
  
  <pre><code>&lt;% using (Html.BeginForm())
     { %&gt;
     &lt;%= Html.ValidationSummary(true) %&gt;
  ....
        &lt;%= Html.TextBox("DateReport", Model.DateReport.ToShortDateString(), new { @class = "dateField" })%&gt;                
        &lt;input type="submit" value="Load report" /&gt; 
  &lt;% } %&gt;
  &lt;Code for my grid here&gt;
  &lt;div class="pager"&gt;
      &lt;%= Html.PageLinks(Model.PagingInfo, x =&gt; Url.Action("List", "History", new { page = x, dateReport = Model.DateReport }))%&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>Controller method:</p>
  
  <pre><code>public ActionResult List([DefaultValue(1)] int page, DateTime? dateReport)
  {
      ...
      return View(model);
  } 
  </code></pre>
  
  <p>When I first load the page, the datepicker's text box shows the correct date format: <strong>30.01.2011</strong>.</p>
  
  <p>When I change the date and submit "Load report" - the correct date is sent to the Controller and it returns the correct data for the report. The date in the datepicker textbox is also in the correct format: <strong>30.01.2011</strong>.</p>
  
  <p>But then I click on the link for the next page in the grid, I get returned a datepicker textbox date in an incorrect format, like this: <strong>01/30/2011 00:00:00</strong>.</p>
  
  <p>Please, help me - what I doing wrong!?</p>