Codeunit DotNet_CultureInfo
Methods
GetCultureInfoByName
Points this codeunit to the specified culture.
procedure GetCultureInfoByName(CultureName: Text)
Parameters
| Name | Type | Description |
|---|---|---|
| CultureName | Text |
The culture language tag, for example "en-US". |
GetCultureInfoById
Points this codeunit to the specified culture.
procedure GetCultureInfoById(LanguageId: Integer)
Parameters
| Name | Type | Description |
|---|---|---|
| LanguageId | Integer |
The culture LCID, for example 1033. |
InvariantCulture
Points this codeunit to the invariant culture.
procedure InvariantCulture()
Name
Gets the name of the culture.
procedure Name(): Text
Returns
| Type | Description |
|---|---|
| Text |
The name of the culture, for example "en-US". |
Remarks
Make sure you initialize this codeunit (for example with the procedure <see cref="GetCultureInfoById"></see>) before calling this function.
LCID
Gets the language code (LCID) of the culture.
procedure LCID(): Integer
Returns
| Type | Description |
|---|---|
| Integer |
The LCID of the culture, for example 1033. |
Remarks
Make sure you initialize this codeunit (for example with the procedure <see cref="GetCultureInfoById"></see>) before calling this function.
CurrentCultureName
Gets the name of the current culture.
procedure CurrentCultureName(): Text
Returns
| Type | Description |
|---|---|
| Text |
The name of the current culture, for example "en-US". |
ToString
Gets a string representation of the culture.
procedure ToString(): Text
Returns
| Type | Description |
|---|---|
| Text |
A string representation of the culture. |
Remarks
Make sure you initialize this codeunit (for example with the procedure <see cref="GetCultureInfoById"></see>) before calling this function.
TwoLetterISOLanguageName
Gets the language name for the culture.
procedure TwoLetterISOLanguageName(): Text
Returns
| Type | Description |
|---|---|
| Text |
A code (two or three letters long), for example "en" or "quz". |
Remarks
Make sure you initialize this codeunit (for example with the procedure <see cref="GetCultureInfoById"></see>) before calling this function.
ThreeLetterWindowsLanguageName
Gets the three-letter windows language name.
procedure ThreeLetterWindowsLanguageName(): Text
Returns
| Type | Description |
|---|---|
| Text |
The three letter Windows language name, for example "ENU". |
DateTimeFormat
Gets the date-time format info for the culture.
procedure DateTimeFormat(var DotNet_DateTimeFormatInfo: Codeunit DotNet_DateTimeFormatInfo)
Parameters
| Name | Type | Description |
|---|---|---|
| DotNet_DateTimeFormatInfo | Codeunit System.DateTime.DotNet_DateTimeFormatInfo |
The returned date-time format info. |
Remarks
Make sure you initialize this codeunit (for example with the procedure <see cref="GetCultureInfoById"></see>) before calling this function.