Skip to content

Commit

Permalink
Link to Date.toLocaleString instead of Date.toUTCString (mdn#29297)
Browse files Browse the repository at this point in the history
Link to Date.useLocaleString
  • Loading branch information
akselinurmio authored Sep 26, 2023
1 parent b7d43fd commit ce00297
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ The {{jsxref("Date")}} object overrides the {{jsxref("Object/toString", "toStrin
- If you only want to get the _date_ part, use {{jsxref("Date/toDateString", "toDateString()")}}.
- If you only want to get the _time_ part, use {{jsxref("Date/toTimeString", "toTimeString()")}}.
- If you want to make the date interpreted as UTC instead of local timezone, use {{jsxref("Date/toUTCString", "toUTCString()")}}.
- If you want to format the date in a more user-friendly format (e.g. localization), use {{jsxref("Date/toUTCString", "toUTCString()")}}.
- If you want to format the date in a more user-friendly format (e.g. localization), use {{jsxref("Date/toLocaleString", "toLocaleString()")}}.

## Examples

Expand Down

0 comments on commit ce00297

Please sign in to comment.