title: Hibernate criteria group by date without time
body: <p>This code give me a list of two items Datetime and count. But I need group it by date without time.</p>
  
  <p>Can anyone give me a clue how to do it? Thanks!</p>
  
  <pre><code>    Criteria criteria = getSession().createCriteria(Parcel.class);
  
      ProjectionList projectionList = Projections.projectionList(); 
  
          projectionList.add(Projections.groupProperty("dateCreated"));
          projectionList.add(Projections.rowCount());
  
      criteria.setProjection(projectionList);
  
  
      List&lt;Object[]&gt; results = criteria.list();
  </code></pre>
  
  <p>Result:</p>
  
  <p>2013-04-27 11:08:00.0 | 32</p>
  
  <p>2013-04-27 11:10:00.0 | 5</p>
  
  <p>2013-04-28 15:03:27.0 | 12</p>
  
  <p>I need:</p>
  
  <p>2013-04-27 | 37</p>
  
  <p>2013-04-28 | 12</p>