title: @JsonFormat for date parsing in JAX-RS service is ignored
body: <p>I'm trying to pass a date to a JAX-RS service. Checking other questions like: <a href="https://stackoverflow.com/questions/12463049/date-format-mapping-to-json-jackson">Date format Mapping to JSON Jackson</a></p>
  
  <p>The answers and the documentation show that there is a <a href="http://wiki.fasterxml.com/JacksonFAQDateHandling" rel="nofollow noreferrer">jackson annotation</a> which should allow date formatting.</p>
  
  <pre><code>public class SolutionFilter {
      @MatrixParam("toDate")
      @JsonFormat(shape=JsonFormat.Shape.STRING, pattern="yyyy-MM-dd", timezone="CET")
      private Date toDate;
  
      public void setToDate(Date toDate) {
          this.toDate = toDate;
      }
  }
  </code></pre>
  
  <p>Upon calling the Rest-Service I'm getting a <code>ParseException</code>:</p>
  
  <pre><code>Caused by: java.text.ParseException: Unparseable date: "2016-01-01"
    at java.text.DateFormat.parse(DateFormat.java:366)
    at org.glassfish.jersey.message.internal.HttpDateFormat.readDate(HttpDateFormat.java:137)
    at org.glassfish.jersey.server.internal.inject.ParamConverters$DateProvider$1.fromString(ParamConverters.java:259)
  </code></pre>
  
  <p>It seems like the annotation is ignored. Debugging the parse method the pattern is set to <code>EEE, dd MMM yyyy HH:mm:ss zzz</code> and <code>EEE MMM d HH:mm:ss yyyy</code>.</p>
  
  <p>I'm using Spring 4.2.1, Jersey 2.22 which binds jackson 2.5.4.</p>
  
  <p>How can I get the dates parsed with the correct pattern?</p>
  
  <p><strong>Update:</strong> Thinking further about it the JSON is only used for output parsing. But this is probably about JAX-RS parameter parsing.</p>