title: Pass a datetime from javascript to c# (Controller)
body: <p>How do you pass a date time (i need it to the second) to c# using jquery and mvc3. This is what I have</p>
  
  <pre><code>var date = new Date();    
  $.ajax(
     {
         type: "POST",
         url: "/Group/Refresh",
         contentType: "application/json; charset=utf-8",
         data: "{ 'MyDate': " + date.toUTCString() + " }",
         success: function (result) {
             //do something
         },
         error: function (req, status, error) {
             //error                        
         }
     });
  </code></pre>
  
  <p>I can't figure out what format the date should be in, for C# to understand it.</p>