new Date(2009, 1, 1)
represents the first of February 2009. Not the second of February nor the first of January. Why this stupidity?
Date
constructornew Date(2009, 1, 1)
represents the first of February 2009. Not the second of February nor the first of January. Why this stupidity?
Date
constructor”
Do read the documentation. Month is a zero based index.
If you document stupidity, it’s still stupidity.