# Reports by Day and Month: Dates in a Pipeline

Dates stored as real dates can be matched by range and grouped by month or day with $year, $month and $dateToString, and the timezone option counts each order in the month it was where the shop is.

![Cheat sheet: Reports by Day and Month: Dates in a Pipeline](https://fsdtrainingmedia.blob.core.windows.net/public/images/2026/11/7aafcf5df9104c9395fede6c15e58d01.webp)

- Category: MongoDB
- Level: Journeyman
- Tags: $dateToString, $group, ISODate, mongodb, UTC
- Author: Gregor Dzierzon
- Updated: November 23, 2026

Source: https://www.ask-codey.com/cheat-sheets/mongodb-aggregation-reports-by-month-cheat-sheet
