-
Notifications
You must be signed in to change notification settings - Fork 0
DateFormatter getLocaleSettings
MarkusWME edited this page May 21, 2016
·
1 revision
DateFormatter - getLocaleSettings
object getLocaleSettings()
This function will return the locale settings object of the DateFormatter.
This function doesn't use any parameters.
The return value of the function is a locale settings object. If no locales have been set the return value will be null. To learn more about the structure of the settings object see setLocaleSettings.
This function doesn't throw any exception.
var dateFormatter = new DateFormatter();
var localeSettings = dateFormatter.getLocaleSettings();
console.log(localeSettings['days'][0]);
This will lead to an output like this:
Monday