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/toString below:

toString · WebPlatform Docs

toString Summary

Returns a human readbale string representation of a date.

Syntax
toString()
Return Value

String that contains the date, time and timezone in a human readable format.

Examples
var now = new Date();
console.log(now.toString());

Notes

According to the specification the contents of the String are implementation-dependent. That means that you cannot rely on the returned format being consistent across browsers. That said, all major browsers seem to agree on the format Wed Oct 08 2014 13:46:37 GMT+0200 (CEST).

toString() adds the code of the current timezone to the output. Because the output format is not specified, some browsers might replace (CEST) (Central European Summer Time) with a fully localized text, e.g. the German (Mitteleuropäische Sommerzeit).

See also Other articles External resources Specification

Date.prototype.toString()

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

Attributions

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