Name

Date.toLocaleTimeString() — return the time portion of a Date as a locally formatted string

Synopsis

date.toLocaleTimeString()

Returns

An implementation-dependent, human-readable string representation of the time portion of date, expressed in the local time zone and formatted according to local conventions.

Get JavaScript: The Definitive Guide, 6th Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.