Date.toLocaleString() : toLocaleString : Date JAVASCRIPT TUTORIALS


JAVASCRIPT TUTORIALS » Date » toLocaleString »

 

Date.toLocaleString()










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>







HTML code for linking to this page:

Follow Navioo On Twitter

JAVASCRIPT TUTORIALS

 Navioo Date
» toLocaleString