MongoDB agrregation | Get total days in a month

后端 未结 0 657
生来不讨喜
生来不讨喜 2021-02-06 01:31

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.

Example:

相关标签:
回答
  • 消灭零回复
提交回复
热议问题