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

toDateString · WebPlatform Docs

toDateString Summary

Returns the date component of a date as a human readable string.

Syntax
toDateString()
Return Value

String value containing the date, in the current time zone, in a convenient, human readable format, e.g. Fri May 09 2014

Examples
var date = new Date("2014-05-09");
console.log(date.toDateString());

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

See also Other articles External resources Specification

Date.prototype.toDateString()

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