Skip to content

Commit

Permalink
Fix reference to another page (#31763)
Browse files Browse the repository at this point in the history
The item talks about formatting the date but the reference is related to formatting the time part.
  • Loading branch information
MFatihY authored Jan 17, 2024
1 parent 8f12033 commit 57970dc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ For example: "Thu Jan 01 1970".
- If you only want to get the _time_ part, use {{jsxref("Date/toTimeString", "toTimeString()")}}.
- If you want to get both the date and time, use {{jsxref("Date/toString", "toString()")}}.
- 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/toLocaleTimeString", "toLocaleTimeString()")}}.
- If you want to format the date in a more user-friendly format (e.g. localization), use {{jsxref("Date/toLocaleDateString", "toLocaleDateString()")}}.

## Examples

Expand Down

0 comments on commit 57970dc

Please sign in to comment.