title: Pass datetime to controller action with jquery-ajax
body: <p>how do i pass a datetime using jquery ajax to a controller action?
  using jquery ui datepicker ie.textbox and calendar control.</p>
  
  <p>The action is still controller/action/11/12/2011 which doesn't work...any help pleasE?</p>
  
  <p>this is what i have:</p>
  
  <pre><code>$.ajax({
              url: '&lt;%: Url.Action("myPartial", "myController") %&gt;/' + dateString,
              type: "GET",
              dataTypeString: "html",
              success: function (response, status, xhr) {
                  var container = $("#myContainer");
                  container.html(response);
              },
              error: function (XMLHttpRequest, textStatus, errorThrown) {
                  var container = $("#myContainer");
                  container.html('&lt;div class="Error"&gt;An error occurred&lt;/div&gt;');
              }
          });
  </code></pre>
  
  <p>where <code>var dateString = $('#myDate').val();</code></p>