Detailed Description
When I use the moment().endOf("M") in many 31 days months, as December, the return is the day 30th.
moment().endOf("M").format("dd/MM/YYYY") return 30/12/2017
Context
I use this to show the start and end of a month report
Environment