Date JavaScript Tutorial

Syntax

date.toLocaleString()
The toLocaleString() method returns a string representation of the Date object in the local time zone.
The format of the string depends on the user's date and time format settings.