Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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)



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: