Created
February 6, 2013 01:48
-
-
Save thirdj/4719507 to your computer and use it in GitHub Desktop.
그 달의 마지막 날 구하기
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var start = new Date(); | |
start.setMonth(start.getMonth()+1); | |
start.setTime(start.getTime()-1); | |
var lastDay = new Date(start.getYear(),start.getMonth(),''); | |
lastDay = lastDay.getDate(); | |
console.log(lastDay); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment