title: Controlling date formatting on .NET WCF service request
body: <p>I'm trying to call a web service from .NET 3.5 using WCF. The error I'm getting currently is</p>
  <blockquote>
  <p>An unsecured or incorrectly secured fault was received from the other party. See the inner FaultException for the fault code and detail.</p>
  <p>InnerException: {&quot;Value -2147483648 for millisOfSecond must be in the range [0,999]&quot;}</p>
  </blockquote>
  <p>I've narrowed it down to two date values I'm sending. When I create the request through soapUI, and send the date values in this format:</p>
  <blockquote>
  <p>2010-07-19T00:00:00.000Z</p>
  </blockquote>
  <p>everything works fine, but when I call the service from .NET, it sends the dates in this format</p>
  <blockquote>
  <p>2010-07-19T00:00:00</p>
  </blockquote>
  <p>and it results in the error above. If I send the incorrect date in soapUI, I get the same error message. Note that these dates are required fields, so if I send nothing it puts a default date of 0001-01-01T00:00:00 in, which is still obviously in the wrong format.</p>
  <p>How can I control how the date is sent to the web service?</p>