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.

By

Updated

Cheat sheet: Reports by Day and Month: Dates in a Pipeline
Category
MongoDB
Level
Journeyman
Tags
$dateToString, $group, ISODate, mongodb, UTC