🚗 2026년 운전면허 갱신기간 계산기

도로교통법 제87조 개정 (2026.1.1. 시행)



📋 갱신기간 안내

📌 생년월일
생년월일을 입력하고 계산하기 버튼을 눌러주세요
🕐 기존 갱신기간 (구법 기준)
✨ 개정 갱신기간 (생일 전후 6개월)
⭐ 실제 적용 갱신기간
💡 참고사항:
• 2026년은 제도 시행 첫 해로 기존 기간 + 개정 기준 기간을 모두 인정합니다
• 2027년부터는 생일 전후 6개월 기준만 적용됩니다
• 갱신 기간 확인: 경찰청 교통민원24 (efine.go.kr)

if (!birthDateStr) { alert('생년월일을 입력해주세요.'); return; }

const birthDate = new Date(birthDateStr); const birthMonth = birthDate.getMonth() + 1; const birthDay = birthDate.getDate();

// 생일 표시 document.getElementById('displayBirth').innerText = renewalYear + '년 ' + birthMonth + '월 ' + birthDay + '일';

// 기존 갱신기간 (구법) const oldStart = renewalYear + '년 1월 1일'; const oldEnd = renewalYear + '년 12월 31일';

// 개정 갱신기간 (생일 전후 6개월) const birthdayThisYear = new Date(renewalYear, birthMonth - 1, birthDay); const newStartDate = addMonths(birthdayThisYear, -6); const newEndDate = addMonths(birthdayThisYear, 6);

// 실제 적용 기간 let actualStart, actualEnd;

if (renewalYear === 2026) { // 2026년은 특별 적용: 1월 1일부터 개정 종료일까지 actualStart = '2026년 1월 1일'; actualEnd = formatDate(newEndDate); } else { // 2027년 이후는 개정 기준만 적용 actualStart = formatDate(newStartDate); actualEnd = formatDate(newEndDate); }

// 결과 표시 document.getElementById('oldPeriod').innerHTML = oldStart + ' ~ ' + oldEnd; document.getElementById('newPeriod').innerHTML = formatDate(newStartDate) + ' ~ ' + formatDate(newEndDate); document.getElementById('actualPeriod').innerHTML = actualStart + ' ~ ' + actualEnd;

// 결과 영역으로 스크롤 document.getElementById('result').scrollIntoView({ behavior: 'smooth', block: 'nearest' }); }

// 페이지 로드 시 기본값 설정 및 자동 계산 window.addEventListener('load', function() { // 오늘 날짜를 기본값으로 설정 const today = new Date(); const dateStr = today.toISOString().split('T')[0]; document.getElementById('birthDate').value = dateStr;

// 자동으로 한 번 계산 calculateRenewalPeriod(); });