Created
January 15, 2019 08:16
-
-
Save nhanco/cae6ab61acb2d8c8add024d99fffdf00 to your computer and use it in GitHub Desktop.
wtf bug
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
function tomorrow(str) { | |
var r = [] | |
var d = new Date(str) | |
d.setDate(d.getDate() + 1) | |
r["year"] = d.getFullYear() | |
r["month"] = d.getMonth() + 1 | |
r["day"] = d.getDate() | |
return r | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment