new Date(2009, 1, 1) represents the first of February 2009. Not the second of February nor the first of January. Why this stupidity?
Tags: stupid
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?
Tags: stupid
Date constructor”
Do read the documentation. Month is a zero based index.
If you document stupidity, it’s still stupidity.