title: How to fetch data between 2 dates in greenDao database
body: <p>I have two dates . One is the current date and the other is 30 days back date. So I need to fetch the data between these 2 dates in Green Dao. But I am not getting the result. </p>
  
  <p>MyCode:</p>
  
  <pre><code> Date startRangeDate = new Date();
   Date endRangeDate = dateBefore30Days;
   QueryBuilder&lt;StructSamePage&gt; qb = UserDao.queryBuilder();
   qb.where(UserDao.Properties.dateTime.between(startRangeDate.getTime(), endRangeDate.getTime()));
   List&lt;StructSamePage&gt; list = qb.list();
  </code></pre>