title: How to pass Date values as params in Grails
body: <p>I have seen a few posts related to using the g:datePicker in Grails.  Using this it looks like you can just pick the value off the params like so params.myDate.  </p>
  
  <p>However, when I try to do something like this in my view:</p>
  
  <p>view:</p>
  
  <pre><code>&lt;g:link controller="c" action="a" params="[fromDate:(new Date())]"&gt;
  </code></pre>
  
  <p>controller:</p>
  
  <pre><code>def dateval = params.fromDate as Date
  </code></pre>
  
  <p>The date is not parsing out correctly.  Is there something else I should be doing in the view to make the date 'parsable' by the controller.  I've looked around and haven't found this in any posts where datePicker is not used.</p>