title: How to aggregate by date when a full timestamp is given in aggregation framework?
body: <p>I have a collection of errors, so that every error carries a <code>date</code> field. How can I aggregate/count/group the errors by DAY only (i.e. exclude the time of the day)? I guess, some smart projection should be applied.</p>