About 358,000 results
Open links in new tab
  1. JavaScript Date toLocaleString() Method - W3Schools

    The toLocaleString() method returns a Date object as a string, using locale settings. The default language depends on the locale setup on your computer.

  2. Date.prototype.toLocaleDateString() - JavaScript | MDN - MDN Web Docs

    The toLocaleDateString() method of Date instances returns a string with a language-sensitive representation of the date portion of this date in the local timezone.

  3. javascript - Display date/time in user's locale format and time …

    Dec 2, 2016 · To convert date to local date use toLocaleDateString() method. var date = (new Date(str)).toLocaleDateString(defaultlang, options); To convert time to local time use …

  4. JavaScript Date toLocaleString() Method - GeeksforGeeks

    Jun 26, 2018 · The date.toLocaleString() method is used to convert a date and time to a string using the locale settings. Syntax: dateObj.toLocaleString(locales, options) Parameters: This …

  5. How JavaScript toLocaleString() method works - with code …

    Mar 14, 2022 · The JavaScript toLocaleString() method is available from JavaScript Date and Number objects. The purpose of the toLocaleString() method is to create a locale-sensitive …

  6. JavaScript | Dates | .toLocaleString() | Codecademy

    Jun 4, 2024 · In JavaScript, the .toLocaleString() method formats a Date object as a string according to the specified locale, considering cultural settings such as language and date/time …

  7. JavaScript Date toLocaleString() Method | CodeToFun

    Nov 21, 2024 · In this guide, we'll explore the syntax, usage, best practices, and practical applications of the toLocaleString() method. The toLocaleString() method is a member of the …

  8. JavaScript Object.toLocaleString() - Programiz

    The toLocaleString() method returns a language-sensitive string representation of the object. In this tutorial, you will learn about the JavaScript Object.toLocaleString() method with the help of …

  9. Number.prototype.toLocaleString() - JavaScript | MDN - MDN Web Docs

    Mar 13, 2025 · The toLocaleString() method of Number values returns a string with a language-sensitive representation of this number. In implementations with Intl.NumberFormat API …

  10. How to use toLocaleString () and tofixed (2) in JavaScript

    Feb 14, 2020 · toLocaleString takes 2 arguments. The first is the locale, the second are the options. As for the options, you are looking for: minimumFractionDigits. The minimum number …

  11. Some results have been removed
Refresh