diff --git a/files/en-us/web/javascript/reference/global_objects/date/setdate/index.html b/files/en-us/web/javascript/reference/global_objects/date/setdate/index.html index a5e89a729a43365..31652a827f99d60 100644 --- a/files/en-us/web/javascript/reference/global_objects/date/setdate/index.html +++ b/files/en-us/web/javascript/reference/global_objects/date/setdate/index.html @@ -10,8 +10,9 @@ ---
The setDate()
method sets the day of the
- {{jsxref("Date")}} object relative to the beginning of the currently set month.
The setDate()
method changes the day of the month of a given {{jsxref("Date")}} instance, based on local time.
To instead change the day of the month for a given {{jsxref("Date")}} instance based on UTC time, use the {{jsxref("Date.prototype.setUTCDate()", "setUTCDate()")}} method.
The setUTCDate()
method sets the day of the month for a
- specified date according to universal time.
The setUTCDate()
method changes the day of the month of a given {{jsxref("Date")}} instance, based on UTC time.
To instead change the day of the month for a given {{jsxref("Date")}} instance based on local time, use the {{jsxref("Date.prototype.setDate()", "setDate()")}} method.