Date, months are zero based, and days aren't.
var foo = new Date(2012, 1, 1)
produces February 1st 2012
Why is this?
Software Engineering Stack Exchange is a question and answer site for professionals, academics, and students working within the systems development life cycle. It only takes a minute to sign up.Sign up to join this community
For reasons I'm not aware of, that Tweet seems to no longer exist, at least not for me (not a Twitter user).