- 18 Sep 2024
- 1 Minute to read
- DarkLight
Activate Culture
- Updated on 18 Sep 2024
- 1 Minute to read
- DarkLight
General
This type of action is used to activate a culture which which will influence date and number formatting in subsequent actions and report document creations.
Properties
This type of action has the following properties:
Name | Description |
---|---|
Culture Name | An Expression that returns a String that returns the name of the culture to activate. This needs to be one of the values of the CultureInfo Code column of the Culture Code List. |
Example
If you add an Activate Culture action to the preparation actions of a Report to en-US. In an expression element of the report you use the following expression:
Format(Date.Today, "d")
The d format string specifier format the given date (in this example: the current date) to the short date format of the currently activate culture. Since en-US is activated, the date will be formatted using the MM/dd/yyyy format.