<%* const currentMoment = moment(tp.file.title, "YYYY-MM-DD(dddd)"); const 일 = 0; const 월 = 1; const 화 = 2; const 수 = 3; const 목 = 4; const 금 = 5; const 토 = 6; const currentfirstday = moment(tp.file.title, "YYYY-MM-DD(dddd)").startOf("month").format("YYYY-MM-DD(dddd)"); tR += currentMoment.format('dd') ; tR += currentfirstday.format('dd') ; return (((weekDay - 1) + currentDate) / 7) + 1; } %>