Skip to content

Instantly share code, notes, and snippets.

@thirdj
Created February 6, 2013 01:48
Show Gist options
  • Save thirdj/4719507 to your computer and use it in GitHub Desktop.
Save thirdj/4719507 to your computer and use it in GitHub Desktop.
그 달의 마지막 날 구하기
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