The toTimeString() function of date object return time part of date as string. Use it for example to get time part of date as string.
Syntax
This will produce following result