The toTimeString() method converts the time portion of a Date object to a string.
This method has the form:
The following example shows the basic use of this method.
<script> var d = new Date(); document.write(d.toTimeString()); </script>
This produces the following result: