SyntaxFix
Write A Post
Hire A Developer
Questions
As simple we can use daysInMonth() and endOf()
const firstDay = moment('2016-09-15 00:00', 'YYYY-MM-DD h:m').startOf('month').format('D') const lastDay = moment('2016-09-15 00:00', 'YYYY-MM-DD h:m').endOf('month').format('D')