Date.toDateString() (Method)

The value of the Date object is presented just as a date.

Availability:

ECMAScript edition - 3
JavaScript - 1.5
JScript - 5.5
Internet Explorer - 5.5
Netscape - 6.0
Property/method value type:String primitive
JavaScript syntax:-myDate.toDateString()

The time value is rounded off and only the date value is presented by this method.

Cross-references:

ECMA 262 edition 3 - section - 15.9.5.3