title: Retrieving records in a date range using Grails + Joda-Time
body: <p>I am trying to retrieve a list of events using the following code </p>
  
  <pre><code> def startDay = new DateTime().withDayOfMonth(1)
   def endDay = new DateTime().dayOfMonth().withMaximumValue()
   def eventsList = &lt;Domain Class&gt;.findAllEventDateBetween(startDay..endDay)
  </code></pre>
  
  <p>I have specified the following in the domain class </p>
  
  <pre><code>static mapping = {
      eventDate type: PersistentDateTime
  }
  </code></pre>
  
  <p>From what I have been able to find, I thought this would return a list of event records between the two date times i specified. However I get the following error whenever I try to run the code</p>
  
  <pre><code>    Method expression 'Between' requires 2 arguments. Stacktrace follows:
  Message: Method expression 'Between' requires 2 arguments
      Line | Method
  -&gt;&gt;  111 | methodMissing in org.grails.datastore.gorm.GormStaticApi
  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
  |     19 | doCall        in koss.SomeController$_closure3$$EOPB7E85
  |    195 | doFilter . .  in grails.plugin.cache.web.filter.PageFragmentCachingFilter
  |     63 | doFilter      in grails.plugin.cache.web.filter.AbstractFilter
  |   1145 | runWorker . . in java.util.concurrent.ThreadPoolExecutor
  |    615 | run           in java.util.concurrent.ThreadPoolExecutor$Worker
  ^    744 | run . . . . . in java.lang.Thread
  </code></pre>
  
  <p>What am I doing wrong? Am I doing anything right? </p>
  
  <p>I just want to retrieve a set of records that are from the current month. Unfortunately I cant seem to find anything more that can help me.</p>