/

HTML / CSS / JavaScript Tutorial

JavaScript Date method: toLocaleDateString()

[this page | pdf | back links]

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

 

It has the following syntax (with no parameters):

 

date.toLocaleDateString()

 


NAVIGATION LINKS
Contents | Prev | Next | JavaScript Dates


Desktop view | Switch to Mobile