Use this function to convert the date and time to the specified format. Consumer Goods
Mobile App Framework uses a third-party library for date-time localization. If you request for
date time translations, this function returns the formatted date according to the globally set
locale. If the specified languageCode isn’t available or loaded, the english locale is set as
default. languageCode must be as per ISO 3166 standard.
Required Editions
Available in Lightning Experience in Professional, Unlimited, and
Enterprise Editions that have Consumer Goods Cloud enabled.
Parameters
input: Content to be localized.
type: Type of the content. It can either be date, dateTime, time, or number.
format: Optional and is used for date-time formatting, if provided.
Returns
If successful, the function returns localized.
Did this article solve your issue?
Let us know so we can improve!
Loading
Salesforce Help | Article
Cookie Consent Manager
General Information
Required Cookies
Functional Cookies
Advertising Cookies
General Information
We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required Cookies
Always Active
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional Cookies
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising Cookies
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.