Date.setUTCDate() (Method)

Sets the UTC day within a month of the time object.


ECMAScript edition - 2
JavaScript - 1.3
JScript - 3.0
Internet Explorer - 4.0
Netscape - 4.0
Property/method value type:Time value
JavaScript syntax:-myDate.setUTCDate(aDateValue)
Argument list:aDateValueA day number within the current month

The result returned by this method is the new time value of the containing object having been adjusted by the values passed in as arguments.

The calculations are performed according to UTC time coordinates.

Example code:

   myArray = new Array("Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday");
   myDate = new Date();
   document.write("The first day of this month is a " + myArray[myDate.getDay()]);

See also:Date.getUTCDate(), Date.prototype


ECMA 262 edition 2 - section -

ECMA 262 edition 3 - section -