JavaScript | date.toTimeString() function

The date.toTimeString() is an inbuilt function in JavaScript which is used to return the time portion of the given date object in english.The date object is created using date() constructor.



Note: In the above syntax, DateObj is a valid Date object created using Date() constructor whose time portion contents is returned.