JavaScript Reference/Javascript Methods/toLocaleString
Версия от 18:30, 25 мая 2010; (обсуждение)
"toLocaleString()" Example
<html>
<body>
<button onclick="var myDate = new Date();
alert(myDate.toLocaleString());">
Locale String
</button>
</body>
</html>
"toLocaleString()" is applied to
+----------------+--------------------------------------------------------------+
| Applied_To |Date Number |
| |Object |
+----------------+--------------------------------------------------------------+
"toLocaleString()" Syntax Parameters and Note
Note:
Converts the object to a locale specific format.
Syntax:
objectName.toLocaleString()