Does getDay() comply with ISO 8601?
<p>I'm having real trouble working out whether JavaScript's <code>getDay()</code> method (<a href="http://www.w3schools.com/jsref/jsref_getday.asp" rel="nofollow">http://www.w3schools.com/jsref/jsref_getday.asp</a>) complies with ISO 8601.</p>

<p><code>getDay()</code> returns <code>0</code> for Sunday, <code>1</code> for Monday etc..</p>

<p>The documentation recommends mapping to day names like this:</p>

<pre><code>var weekday=new Array(7);
weekday[0]="Sunday";
weekday[1]="Monday";
weekday[2]="Tuesday";
...
var n = weekday[(new Date()).getDay()];
</code></pre>

<p>I can only see that the ISO standard defines Monday as the first day of the week. I would assume this means Monday should be 0, not Sunday.</p>

<p>Does anyone have any experience with this? Can you clarify and would you recommend overriding the method to make Monday the first day of the week?</p>
