A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://webplatform.github.io/docs/javascript/Date/toLocaleString below:

toLocaleString · WebPlatform Docs

toLocaleString Summary

Returns a date as a string value appropriate to the host environment’s current locale.

Syntax
toLocaleString()
Examples
var nowdate = new Date();
alert(nowdate.toLocaleString());

Remarks

String that contains a date, in the current time zone, in a human readable format. The date is in the default format of the host environment’s current locale.

Usage
 The return value of toLocaleString cannot be relied upon in scripting, as it will vary from computer to computer. The toLocaleString method should only be used to format display - never as part of a computation.
See also Other articles External resources Specification

Date.prototype.toLocaleString()

ECMAScript® Language Specification Standard ECMA-262 5.1 Edition / June 2011


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4