DEV Community

Discussion on: Fiscal years and how JavaScript is wrong about months

Collapse
 
zwacky profile image
Simon Wicki

Great post!
And yes, Date in JavaScript is a mess.
For anyone wondering "Why JavaScript's getMonth() starts with 0" I once made a short thread on Twitter.

👉 twitter.com/zwacky/status/13373851...

Spoiler alert: It had historical reasons from copying Java.util.Date.