2.1.120 [ECMA-262-1999] Section, Date.prototype.setUTCDate (date)


(The bulleted step is added before step 1)

  • __If the argument date is not present, throw a TypeError exception.__

  1. Let t be this time value.

  2. Call ToNumber (date).

  3. Compute MakeDay(YearFromTime(t), MonthFromTime(t), Result(2)).

  4. Compute MakeDate(Result(3), TimeWithinDay(t)).

  5. Set the [[Value]] property of the this value to TimeClip(Result(4)).

  6. Return the value of the [[Value]] property of the this value.