/

HTML / CSS / JavaScript Tutorial

JavaScript Date method: toLocaleTimeString()

[this page | pdf | back links]

The toLocaleTimeString() method (when applied to a JavaScript date) returns the time portion as a string, using locale-specified notation.

 

It has the following syntax (with no parameters):

 

date.toLocaleTimeString()

 


NAVIGATION LINKS
Contents | Prev | Next | JavaScript Dates


Desktop view | Switch to Mobile