Date.toLocaleString() (Method)

Converts a Date object to a string with the locale specific time.


ECMAScript edition - 2
JavaScript - 1.0
JScript - 1.0
Internet Explorer - 3.02
Netscape - 2.0
Netscape Enterprise Server - 2.0
Opera - 3.0
Property/method value type:String primitive
JavaScript syntax:-myDate.toLocateString()

A string representing the date taking the locale into account.

The contents of the string that is returned, is implementation dependent. This method is intended to represent the date in a convenient and human-readable form that is appropriate to the geographic or cultural locale that is defined for the hosting environment.

In the Macintosh environment, the format should conform to that set by the date/time control panel in accordance with the Apple guidelines for application developers.

See also:Cast operator, Date.prototype


ECMA 262 edition 2 - section -

ECMA 262 edition 3 - section -