Skip to content

DateFormatter getLocaleSettings

MarkusWME edited this page May 21, 2016 · 1 revision

getLocaleSettings

DateFormatter - getLocaleSettings

Description

object getLocaleSettings()

This function will return the locale settings object of the DateFormatter.

Parameters

This function doesn't use any parameters.

Return value

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.

Errors/Exceptions

This function doesn't throw any exception.

Examples

var dateFormatter = new DateFormatter();
var localeSettings = dateFormatter.getLocaleSettings();
console.log(localeSettings['days'][0]);

This will lead to an output like this:

Monday