function getAllDatesOfMonth(date) {
const mDate = moment(date, "YYYY-MM");
const daysCount = mDate.daysInMonth();
return Array(daysCount).fill(null).map((v, index) => {
const addDays = index === 0 ? 0 : 1;
return mDate.add(addDays, 'days').format('YYYY-MM-DD');
});
}