-
Notifications
You must be signed in to change notification settings - Fork 0
DateFormatter getLocaleString
MarkusWME edited this page May 21, 2016
·
1 revision
DateFormatter - getLocaleString
string getLocaleString()
This function returns a string representing the locale settings object.
This function doesn't use any parameters.
A string representation of the locale settings object. If no locale settings are defined null will be returned. If you want to know more about the structure of the locale settings object see setLocaleSettings.
This function doesn't throw any exception.
var dateFormatter = new DateFormatter();
dateFormatter.setLocaleSettings({ampm: ['am', 'pm']});
console.log(dateFormatter.getLocaleString());
This will lead to the following output:
{ampm:['am','pm']}