The toLocaleDateString()
method returns a string with a language sensitive representation of the date portion of the specified date in the user agent's timezone.
The locales
and options
arguments let applications specify the language whose formatting conventions should be used and allow to customize the behavior of the function. In older implementations, which ignore the locales
and options
arguments, the locale used and the form of the string returned are entirely implementation dependent.