Is there a trick to get the total day of a month using mongoDB aggregation ? I know that there is a $dayOfMonth that return the day of the month.
$dayOfMonth
Example: