title: How to POST a DateTime value to a Web API 2 controller
body: <p>I have an example controller:</p>
  
  <pre><code>[RoutePrefix("api/Example")]
  public class ExampleController : ApiController
  {
      [Route("Foo")]
      [HttpGet]
      public string Foo([FromUri] string startDate)
      {
          return "This is working";
      }
  
      [Route("Bar")]
      [HttpPost]
      public string Bar([FromBody] DateTime startDate)
      {
          return "This is not working";
      }
  }
  </code></pre>
  
  <p>When I issue a GET request to: <code>http://localhost:53456/api/Example/Foo?startDate=2016-01-01</code> it works.</p>
  
  <p>When I POST to <code>http://localhost:53456/api/Example/Bar</code> I receive a <code>HTTP/1.1 400 Bad Request</code> error.</p>
  
  <p>This is my POST data:</p>
  
  <pre><code>{
  "startDate":"2016-01-01T00:00:00.0000000-00:00"
  }
  </code></pre>
  
  <p>What am I doing wrong?</p>