/

HTML / CSS / JavaScript Tutorial

JavaScript Date method: toLocaleString()

[this page | pdf | back links]

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

 

It has the following syntax (with no parameters):

 

date.toLocaleString()

 


NAVIGATION LINKS
Contents | Prev | Next | JavaScript Dates


Desktop view | Switch to Mobile