Skip to content

MobileCRM.CultureInfo

rescocrm edited this page Sep 26, 2022 · 3 revisions

MobileCRM.CultureInfo Object

[v10.2] Provides information about current device culture. The information includes the names for the culture, the writing system, the calendar used, and formatting for dates.

Properties

Property Type Description
name String Gets the culture name in the format languageCode/region (e.g. "en-US"). languageCode is a lowercase two-letter code derived from ISO 639-1. regioncode is derived from ISO 3166 and usually consists of two uppercase letters.
displayName String Gets the full localized culture name.
nativeName String Gets the culture name, consisting of the language, the country/region, and the optional script, that the culture is set to display.
localization String Gets selected localization language.
ISOName String Gets the ISO 639-1 two-letter code for the language of the current CultureInfo.
isRightToLeft Boolean Gets a value indicating whether the current CultureInfo object represents a writing system where text flows from right to left.
dateTimeFormat MobileCRM.DateTimeFormat Gets a DateTimeFormat that defines the culturally appropriate format of displaying dates and times.
numberFormat MobileCRM.NumberFormat Gets a NumberFormat that defines the culturally appropriate format of displaying numbers, currency, and percentage.

Functions

Function Description
formatDate [v10.2] Returns the formatted date/time string that matches current device culture.
fullDateTimeString [v10.2] Returns the date and time string that matches current device culture.
initialize [v10.2] Initializes the CultureInfo object.
initializeAsync [v10.2] Initializes the CultureInfo object.
load [v10.2] Asynchronously gets the CultureInfo object for specified language/country.
loadAsync [v10.2] Asynchronously gets the CultureInfo object for specified language/country.
longDateString [v10.2] Returns the long date string that matches current device culture.
longTimeString [v10.2] Returns the long time string that matches current device culture.
monthDayString [v10.2] Returns the month and day string that matches current device culture.
shortDateString [v10.2] Returns the short date string that matches current device culture.
shortTimeString [v10.2] Returns the short time string that matches current device culture.
yearMonthString [v10.2] Returns the year and month string that matches current device culture.
Clone this wiki locally