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

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.