+ 2
Code playground (JavaScript)
âgetMonth();â is getting January ( 1 ) but itâs February ( 2 )? https://code.sololearn.com/W3cVov3ygu6r/?ref=app
3 Answers
+ 4
.getMonth() is zero based, i.e. values range from 0 to 11, not 1 to 12.
https://www.w3schools.blog/getmonth-javascript-js
+ 3
Thank you
0
ĐĐŸ