The toString() method is used to convert a Date value to a string, and return the result.
This method has the form:
The following example shows the basic use of this method.
<script> var d = new Date(); document.write(d.toString()); </script>
This produces the following result: