app.js 262 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 8 const today = new Date("2022-05-12"); //오늘 날짜 입력 const holiday = new Date("2022-10-01"); //공휴일 날짜 입력 const diffDate= today.getTime() - holiday.getTime(); const dday= Math.abs(diffDate / (1000 * 3600 * 24)); console.log(dday);