function getMonthWeek(ymd){ let _ds = new Date(ymd); _date = _ds.getDate() _day=_ds.getDay() return Math.ceil((_date - 1 - _day) / 7 ); }