Date.toLocaleString() : toLocaleString « Date « JavaScript Tutorial






Syntax

date.toLocaleString()

The toLocaleString() method returns a string representation of the Date object in the local time zone.

The format of the string depends on the user's date and time format settings.

<html>
    <script language="JavaScript">
    <!--
    theDate = new Date();

    document.write(theDate.toLocaleString());

    -->

    </script>
    </html>








12.43.toLocaleString
12.43.1.Date.toLocaleString()