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 @@ ---
{{JSRef}}
-

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.

{{EmbedInteractiveExample("pages/js/date-setdate.html")}}
diff --git a/files/en-us/web/javascript/reference/global_objects/date/setutcdate/index.html b/files/en-us/web/javascript/reference/global_objects/date/setutcdate/index.html index 4ef70b348c3008f..0fbafe35e19ef41 100644 --- a/files/en-us/web/javascript/reference/global_objects/date/setutcdate/index.html +++ b/files/en-us/web/javascript/reference/global_objects/date/setutcdate/index.html @@ -10,8 +10,9 @@ ---
{{JSRef}}
-

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.

{{EmbedInteractiveExample("pages/js/date-setutcdate.html")}}