Timeline for Why does Javascript treat days and months differently?
Current License: CC BY-SA 3.0
10 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Nov 30, 2021 at 15:51 | comment | added | Robert Harvey | @FrustratedWithFormsDesigner: Finding a better way to process dates is why Jon Skeet created NodaTime and JodaTime. Also, you might find this interesting. | |
| Dec 14, 2012 at 4:52 | comment | added | Carson63000 | @rlemon: "bat crap crazy"? Maybe. I know for sure that I've never heard anyone say that these 0-based month values are a good idea, and I never expect to hear anyone say it either. | |
| Dec 13, 2012 at 22:52 | vote | accept | shauneba | ||
| Dec 13, 2012 at 17:34 | comment | added | Tridus | When it comes to Javascript, "this is why they did it" and "this makes a good sense" are two things you rarely hear together. | |
| Dec 13, 2012 at 15:28 | comment | added | rlemon | FWIW, I am not a front end developer and don't often have to deal with dates in Javascript aside from the occasional new Date().getTime() | |
| Dec 13, 2012 at 15:20 | comment | added | FrustratedWithFormsDesigner | FWIW, I never thought it made much sense. Processing dates in JavaScript was always something that made me shudder, because I'd usually forget things like this until I started debugging strange results. | |
| Dec 13, 2012 at 15:18 | comment | added | Sergey Kalinichenko | @rlemon The fact that you've never questioned that logic before only proves that it makes sense :) | |
| Dec 13, 2012 at 15:12 | comment | added | rlemon | Where this makes sense from an answer stand point, it's bat crap crazy to think this logic has been around for how long now and i've never questioned it before. | |
| Dec 13, 2012 at 15:04 | comment | added | shauneba | That does make sense the more I think about it. Thanks! | |
| Dec 13, 2012 at 15:03 | history | answered | thorsten müller | CC BY-SA 3.0 |