title: how do I get a list of dates from a date range using groovy
body: <p>I have a simple query which get a list of all dates in a date range, and want to implement it in groovy. </p>
  
  <pre><code>select 
  TO_DATE('01/23/2012','MM/DD/YYYY') + level -1
  from 
  dual connect by level &lt; (TO_DATE('02/07/2012','MM/DD/YYYY') - TO_DATE('01/23/2012','MM/DD/YYYY'));
  </code></pre>
  
  <p>Result set is : </p>
  
  <pre><code>23-JAN-12
  24-JAN-12
  25-JAN-12
  26-JAN-12
  27-JAN-12
  28-JAN-12
  29-JAN-12
  30-JAN-12
  31-JAN-12
  01-FEB-12
  02-FEB-12
  03-FEB-12
  04-FEB-12
  05-FEB-12
  </code></pre>
  
  <p>Can I do this using groovy or if not hibernate?</p>