Returns the date component of a date as a human readable string.
SyntaxtoDateString()
Return Value
String value containing the date, in the current time zone, in a convenient, human readable format, e.g. Fri May 09 2014
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
ECMAScript® Language Specification Standard ECMA-262 5.1 Edition / June 2011
AttributionsMicrosoft Developer Network: Article
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