SetCulture(culture) Last updated: 22. Dec 2022
Sets culture to use when formatting dates and numbers.
Parameters
Name | Type | Description |
---|---|---|
culture | number | Culture LCID number |
Returns
Nothing, but writes text to output stream.
Example
Code example (#JS)
#JS is mixed HTML (or other text file) with inline JavaScript with # starting and ending each inline statement.<h1>Formatting with Norwegian currency format</h1>
#{
/* Set culture */
docly.setCulture(1044);
/* Can be used when formatting numbers and dates: */
var number = 10000.50;
write(docly.format(number, "C"));
}#
Output
The #JS code above produces the output shown below:<h1>Formatting with Norwegian currency format</h1>
kr 10 000,50