[MongoDB]: Aggregation on Date Part of a DateTime Property
If you need to do an aggregation in MongoDB on a DateTime property and you want to aggregate only by Date part, you can use a simple trick and use a filter to compose the date part before the grouping….