GlideLocale - Scoped

concept australia Updated Sep 10, 2026 1 min read c_GlideLocaleScopedAPI.md
Raw file servicenow.com

The GlideLocale API provides information about display information for the local instance.

There is no constructor for a GlideLocale object. Use the get() method to obtain a GlideLocale object.

Parent Topic:Server API reference

GlideLocale - get()

Returns the GlideLocale object.

Name Type Description
None
Type Description
GlideLocale The GlideLocale object.
JavaScript
var locale = GlideLocale.get();

GlideLocale - getDecimalSeparator()

Returns the decimal separator.

Name Type Description
None
Type Description
String The decimal separator.
JavaScript
var locale = GlideLocale.get();var decimalSeparator = locale.getDecimalSeparator();gs.info( "The decimal separator is " + decimalSeparator);

Output:

Text
The decimal separator is .

GlideLocale - getGroupingSeparator()

Returns the grouping separator.

Name Type Description
None
Type Description
String The grouping separator.
JavaScript
var locale = GlideLocale.get();var groupingSeparator = locale.getGroupingSeparator();gs.info( "The grouping separator is " + groupingSeparator);

Output:

Text
The grouping separator is ,
Search documentation
Search document titles and file paths on the australia branch