GetCultureInfo

Returns a CSV list containing details about a specific ISO culture code. If the chosen code does not exist, the function will return an error.

Syntax

GetCultureInfo( CultureCode );

Parameters

Parameter Name Type Description Optional? Default Value
CultureCode String The code for the culture you want to retrieve information about. No n/a

Output

If successful, the function will return a CSV list containing information about the specified culture; otherwise, it will return an error.

The CSV returned by the function will list each of the following properties as a distinct row, with each row separated using a pipe (|):

  • Name
  • Display Name
  • ISO Region Name
  • Full Date Time Pattern
  • Short Date Pattern
  • Short Time Pattern
  • Long Date Pattern
  • Long Time Pattern
  • Currency Symbol
  • ISO Currency Symbol
  • Currency Name
  • Currency Decimal Digits
  • Currency Decimal Separator
  • Currency Group Separator

Use Case

This function enables you to quickly retrieve a complete list of culture-specific data, such as its currency and date format. These properties can be used throughout your application to ensure values are formatted according to the chosen culture.

For example, to get culture details about the United States, you could use the following expression:

GetCultureInfo( "en-US" );

This will return the following list:

en-US|English (United States)|USA|dddd, MMMM d, yyyy h:mm:ss tt|M/d/yyyy|h:mm tt|dddd, MMMM d, yyyy|h:mm:ss tt|$|USD|US Dollar|2|.|,

You could then extract specific values and reference them as needed throughout your application.