title: Send javascript date to webservice
body: <p>I've a .NET webservice which takes an integer and a date object has a parameter. I'm calling the webservice using AJAX with jQuery, but I'm having trouble sending the date in the correct format. </p>
  
  <p>When a .NET webservice returns a date object, it is in the UTC format (milliseconds since 1/1/1970), so I figured I should use the same format when sending a date from the client to the webservice, but when I do (eg. that value <code>Date(1308787200000)</code>), then I get an error from the webservice saying that it "is not a valid value for DateTime".</p>
  
  <p>What am I missing here?</p>
  
  <p>Regards,
  Steffen</p>