Date.toLocaleDateString(locales?: string | string[],options?: Intl.DateTimeFormatOptions,): string
Converts a date to a string by using the current or specified locale.
A locale string or array of locale strings that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used.
optional
options: Intl.DateTimeFormatOptions
An object that contains one or more properties that specify comparison options.