Document Developer - instructions > Language handling and output formatting > Output formatting of substitutions

Output formatting of substitutions
The output text of a substitution can be processed according to your specifications to render data in the desired format. For example, a date with raw input data 2008-06-19 can be formatted as:
Thursday, June 19, 2008.
Date, time, date-time, numeric (integer, decimal, currency, percentage), and text data can be formatted.
Note:
A set of predefined output formats are available. You can also create custom formats with an optional language code for the substitution. You can also set a variable on the format property for the substitution, to dynamically manage which output format to use for a specific substitution during runtime.
For more information about the syntax of output formatting in StoryTeller, see Picture clauses.
Example 44
Input value: 13:30:15
Format: HH:MM A Z
Output value: "13:30 PM EDT"
 
Example 45
Input value: 2008-05-30
Format: date(es){EEEE, D 'de' MMMM 'de' YYYY}
Output value: "Viernes, 30 de mayo de 2008"
 
OpenText StreamServe 5.6 Updated: 2013-03-01