title: How to write between clause for from & to dates for createCriteria in grails?
body: <p>I want to fetch results between 2 dates using following code.</p>
  
  <pre><code>def c = TestCase.createCriteria()
  resultss = c.list {
      like("testStatus", "Dummy")
      and {
          between("testTime", date1, date2)
      }
      order('testified','desc')
  }
  </code></pre>
  
  <p>Here I want to select From Date and To Date like below</p>
  
  <pre><code>FROM DATE : '2014-11-07 12:14:03'(date1)
  TO DATE   : '2015-01-09 08:14:12'(date2)
  </code></pre>
  
  <p>I tried a lot but no luck to get it run.</p>
  
  <p>Can anybody please tell me how to do that?</p>