title: http 400 bad request when using date - Spring MVC, pickadate.js
body: <p>I have a simple form with 3 fields, one containing a pickadate(), the other a pickatime() and the last a simple number.</p>
  
  <p>When I try to post my form, I get a bad request error.</p>
  
  <p><strong>Request dedails</strong></p>
  
  <pre><code>Request URL:http://localhost:8080/CapTheater/admin/addProjection
  Request Method:POST
  Status Code:400 Mauvaise Requête
  </code></pre>
  
  <p>Request Headers</p>
  
  <pre><code>Accept:text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/
  Accept-Encoding:gzip,deflate,sdch
  Accept-Language:fr-FR,fr;q=0.8,en-US;q=0.6,en;q=0.4
  Cache-Control:max-age=0
  Connection:keep-alive
  Content-Length:39
  Content-Type:application/x-www-form-urlencoded
  Cookie:JSESSIONID=EA0DDBF444BC5A4CA416715D72FF9D71
  Host:localhost:8080
  Origin:http://localhost:8080
  Referer:http://localhost:8080/CapTheater/showMovie/1
  User-Agent:Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/31.0.1650.63 Safari/537.36
  </code></pre>
  
  <p>Form Data</p>
  
  <pre><code>day:2014-01-01
  date:09:30
  place_nbr:0
  </code></pre>
  
  <p>Response Headers</p>
  
  <pre><code>Connection:close
  Content-Length:986
  Content-Type:text/html;charset=utf-8
  Date:Mon, 30 Dec 2013 23:35:24 GMT
  Server:Apache-Coyote/1.1
  </code></pre>
  
  <p><strong>Here is the form :</strong></p>
  
  <pre><code>&lt;form:form method="post" action="../admin/addProjection" id="add_movie_form"&gt;
      &lt;form:label id="dayLabel" path="day"&gt;Date : &lt;/form:label&gt;
      &lt;form:input type="text" id="dayInput" path="day" /&gt;
      &lt;form:label id="startLabel" path="date"&gt;Start : &lt;/form:label&gt;
      &lt;form:input type="text" id="startInput" path="date" /&gt;
      &lt;form:label id="sizeLabel" path="place_nbr"&gt;Steats availables : 
      &lt;form:input type="text" id="sizeInput" path="place_nbr" /&gt;
      &lt;input type="submit" class="btn btn-primary"value="Save" /&gt;
  &lt;/form:form&gt;
  &lt;script type="text/javascript"&gt;
          $("#tabs").tabs();
          $("#dayInput").pickadate({
              format : 'yyyy-mm-dd',
              min : new Date()
          });
          $("#startInput").pickatime({
              format : 'HH:i',
              min: [8, 0],
              max: [22, 30]
          });
      &lt;/script&gt;
  </code></pre>
  
  <p><strong>The controller</strong></p>
  
  <pre><code>@RequestMapping(value = "admin/addProjection", method = RequestMethod.POST)
  public String addProjection(
  @ModelAttribute("command") final Projection projection,
      final ModelMap model)
  {
          projectionDao.save(projection);
          return "/showMovie/" + projection.getMovieId() + "#tabs-4";
  }
  </code></pre>
  
  <p><strong>Finally, in the bean</strong></p>
  
  <pre><code>public class Projection implements Comparable&lt;Projection&gt;
  {
  @DateTimeFormat(pattern = "yyyy-MM/dd")
      private Date day;
      public Date getDay()
      {
          return day;
      }
  
      public void setDay(Date day)
      {
          this.day = day;
      }
  }
  </code></pre>
  
  <p>Thank you :)</p>