Created
January 30, 2015 03:49
-
-
Save y16ra/0e8e22a6f97df4fdc003 to your computer and use it in GitHub Desktop.
Javascriptで月末日を取得するサンプル
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 today = new Date(); | |
new Date(today.getFullYear(), today.getMonth() + 1, 0); | |
// error | |
dt.setFullYear(today.getFullYear()); | |
dt.setMonth(today.getMonth()+1); | |
dt.setDate(0); | |
dt.getDate(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment