JavaScript Date toLocaleTimeString()
JavaScript Date toLocaleTimeString()
The toLocaleTimeString() method is used to return the time part of a date object as a string by using locale conventions. It will skip the date part of the date object.
Syntax:-
Its syntax is:- Date.toLocaleTimeString()
Return:-
Its return is:- string represnting time