title: How to accept Date params in a GET request to Spring MVC Controller?
body: <p>I've a GET request that sends a date in YYYY-MM-DD format to a Spring Controller.
  The controller code is as follows:</p>
  
  <pre><code>@RequestMapping(value="/fetch" , method=RequestMethod.GET)
      public @ResponseBody String fetchResult(@RequestParam("from") Date fromDate) {
          //Content goes here
      }
  </code></pre>
  
  <p>The request is sent correctly as I'm checking with Firebug.
  I get the error:</p>
  
  <blockquote>
    <p>HTTP Status 400: The request sent by the client was syntactically incorrect.</p>
  </blockquote>
  
  <p>How can I make the controller accept this format of Date? 
  Please help. What am I doing wrong?</p>