[ 자바스크립트 ] javascript date.getMonth() bug? 한 달전 달이 출력되는 이슈? by 김동범 about Javascript
- var date = new Date(); //Fri Sep 25 2020 17:08:38 GMT+0900 (대한민국 표준시) {} var month = date
- The getMonth() method returns the month (from 0 to 11) for the specified date
- 위의 문서를 보면 알겠지만 자바스크립트에서 getMonth는 0~11까지의 값을 반환한다