Javascript Format Date Time String, Description The toTimeString () method returns the time portion of a date object as a string.