Obtenha dias no mês atual usando o Moment.js

moment().daysInMonth();
Obedient Ocelot