title: CXF JAXRS - How do I pass Date as QueryParam
body: <p>I have a service defined as follows.</p>
  
  <p><code>public String getData(@QueryParam("date") Date date)</code></p>
  
  <p>I'm trying to pass a <code>java.util.Date</code> to it from my client (which is jaxrs:client of CXF, not a generic HTTP client or browser).</p>
  
  <p>My service receives the date as <code>Thu Mar 01 22:33:10 IST 2012</code> in the HTTP URL. Since CXF won't be able to create a <code>Date</code> object using this String, my client receives a 404 error.
  I tried using a <code>ParameterHandler</code> on the service side, but I still can't parse it successfully because I'm not expecting the date in any specific format.</p>
  
  <p>As per <a href="https://stackoverflow.com/questions/583973/jax-rs-jersey-how-to-customize-error-handling" title="this post">this post</a>, passing a <code>Date</code> is supposed to work out of the box, but I can't seem to get the basic case working. Am I required to do anything in order to successfully pass a Date object from my client to service? Appreciate any help.</p>
  
  <p>Thanks</p>