0: 일요일, 1: 월요일, ..., 6: 토요일 ==> <span id="dayOfWeek">--</span><br/> <p id="timezone">timezone text</p> <script> const options = { timeZone: 'Asia/Seoul', // 한국 시간대 (서울) weekday: 'long', // 요일을 추가 year: 'numeric', month: 'long', day: 'numeric', hour12: false, // 24시간 형식 hour: '2-digit', minute: '2-digit', second: '2-digit', }; const currentDate = new Date(); const dayOfWeek = currentDate.getDay(); // 0: 일요일, 1: 월요일, ..., 6: 토요일 const timeInKorea = new Intl.DateTimeFormat('ko-KR', options).format(currentDate); console.log(timeInKorea); // 예: 2025. 3. 21. 오전 10:30 document.getElementById("dayOfWeek").innerHTML = dayOfWeek; document.getElementById("timezone").innerHTML = timeInKorea; </script>