Dear Ecma, how about standardizing your date functions, eh?

Dear Ecma,

I would just like to point out how completely asinine your JavaScript Date object implementation is. How did so many of it’s member functions come to operate in such a non-intuitive way in relation to each other?

Why does getDate() return the day of the month instead of the date itself, while getDay() returns the day of the week and not the day of the month?

Why does getMonth() return a value from 0-11, but getDate() returns a value from 1-31?

Do you know how utterly confusing that is???


* This post was originally published on March 22, 2007 at

We seem to have a compulsion these days to bury time capsules in order to give those people living in the next century or so some idea of what we are like. I have prepared one of my own. I have placed some rather large samples of dynamite, gunpowder, and nitroglycerin. My time capsule is set to go off in the year 3000. It will show them what we are really like.

— Alfred Hitchcock