Gets the current geographic/language locale value.
To set the default display format of date, time, number, and
currency values in a CFML application session, you use
the SetLocale function.
getLocale()
→ returns string
writeOutput(getlocale());
writeOutput(' → ');
setLocale('de_ch');
writeOutput(getlocale());
Expected Result: english (us) → german (swiss)
Signup for cfbreak
to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.