Formatting of variable values

Numeric and date/time variable values can be formatted using .NET String object formatting rules.  

Syntax

To utilize a format string,  specify a format qualifier after the variable name

${VariableName?VariableFormat}

Parameters

VariableName

Name of numeric or date/time variable

VariableFormat

Format specifier.   For valid formats see:

Numeric formats: http://msdn.microsoft.com/en-us/library/427bttx3.aspx

Date/Time formats: http://msdn.microsoft.com/en-us/library/97x6twsz.aspx

Examples

Page number is 23. To convert to 4-digit numbers: 0023 use

${page?0000}

To convert current date from, for example, 04/10/2009 to 10-04-2009 use

${comp.$date?dd-MM-yyyy}