Skip to main content

CultureFormat

CultureFormat Function

Converts the specified value to text displayed using the FormatString of the specified Culture. The culture specified is analogous to the regional settings used by Microsoft windows. (The culture format specified in this function overrieds the windows regional settings for the immediate display.)

For example, using the English (United States) Culture setting, the "short date" FormatString display mm/dd/yyyy and the "currency" FormatString displays $1,234.00. Using the French (france) Culture setting, the "short date" FormaString displays dd/mm/yyyy and the "currency" FormatString displays 1,234,0 €.

Syntax

CultureFormat(scalarValue, scalar FormatString, scalar Culture)

Arguments

ArgumentDescription
scalarValueValue to be converted
scalar FormatStringFormat for output (for example: number, currency, time, short date, long date)
scalar CultureCulture to be used; for example, English (United States), English (United States), Spanish (Mexican), etc.

Examples

CultureFormat (Today(), "F", "es-ES")

Formats the current date in spanish.