Arguments dateObj Required. Any Date object. A numeric value equal to the numeric date. Remarks To set the date using local time , use the setDate method. If the value of numDate is greater than the number of days in the month stored in the Date object or is a negative number, the date is set to a date equal to numDate minus the number of days in the stored month.
Negative numbers have a similar behavior.
The following example illustrates the use of the setUTCDate method. All rights reserved. Terms of Use.