Date.getUTCDay() (Method)

Returns the UTC weekday number for a date/time.


ECMAScript edition - 2
JavaScript - 1.3
JScript - 3.0
Internet Explorer - 4.0
Netscape - 4.0
Property/method value type:Number primitive
JavaScript syntax:-myDate.getUTCDay()

The result of this method is a weekday number for the date value of the receiving object. The value will be in the range 0 to 6 inclusive. The 0 value represents Sunday.

The value is computed according to UTC time co-ordinates.

Example code:

   myArray = new Array("Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat");
   myDate = new Date();

See also:Date.prototype


ECMA 262 edition 2 - section -

ECMA 262 edition 3 - section -