GetLocale

Description

Gets the current geographic/language locale value.

To set the default display format of date, time, number, and currency values in a ColdFusion application session, you use the SetLocale function.

Return value

The current locale value, as a string.

Category

Display and formatting functions, International functions, System functions

Syntax

GetLocale() 

See also

SetLocale

History

New in ColdFusion MX: this function determines whether a locale value is set. (The value is set with the setlocale function.)

Usage

This function does not access a web browser's Accept-Language HTTP header setting.

Example

<h3>GetLocale Example</h3>
<p>The locale for this system is <cfoutput>#GetLocale()#</cfoutput>

Comments