Sets the day of the month for the UTC date

Description

setUTCDate(date)
Sets the day of the month for the UTC date. If the date is greater than the number of days in the month, the month value also gets increased.

Example


      var myDate = new Date();
      /* w  w  w. j  ava 2 s.  co  m*/
      myDate.setUTCDate(23);
      console.log(myDate.toString());
      

The code above generates the following result.





















Home »
  Javascript »
    Javascript Reference »




Array
Canvas Context
CSSStyleDeclaration
CSSStyleSheet
Date
Document
Event
Global
History
HTMLElement
Input Element
Location
Math
Number
String
Window