Y
Hacker News
new
|
ask
|
show
|
jobs
by
phaedryx
4719 days ago
You forgot to add 1 to dt.getMonth(), because months index 0-11 :)
(and be careful not to accidentally concatenate that 1 instead of add)