Convert the time portion of a Date object to a string:
The result of n will be:
The toTimeString() method converts the time portion of a Date object to a string.
Method | |||||
---|---|---|---|---|---|
toTimeString() | Yes | Yes | Yes | Yes | Yes |
None |
Return Value: | A String, representing the time as a string |
---|