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???

Frustrated,
Me

* This post was originally published on March 22, 2007 at http://www.csb7.com/blogs/whyblogwhy/2007/03/22/dear_ecma_how_about_standardizing_your_d

“God’s plan” is often a front for men’s plans and a cover for inadequacy, ignorance, and evil.

— Mary Daly, theologian, feminist, and freethinker, Beyond God The Father: Toward a Philosophy of Women’s Liberation, 1973