4 ms·
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)
by phaedryx 13y 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)