Reference - Format Specifiers and Cultures

TSL Ping Tree > Reference

Reference - Format Specifiers and Cultures

A Format Specifier is the first argument to the format(FormatSpecifier) and format(FormatSpecifier,Culture) modifiers which turn non-String values into String values.  The possible values for this argument depend on the type of the data item being formatted as described in the table below.

As for Cultures the system supports the .NET cultures specified here e.g. "en-GB".  The default is "en-US".

Note: Format Specifiers are CASE SENSITIVE!

Data Type Allowed Specifiers
Checkbox "TrueValue:FalseValue" - e.g. "Y:N" will map to "Y" when the checkbox is checked and "N" when it is not

To only output a value on True use the format "TrueValue".

To only output a value on False use the format ":FalseValue".

Culture is not honored for this data type.
DateTime the standard .NET specifiers for DateTime values e.g. "d" or the custom .NET specifiers for DateTime values e.g. "MM/dd/yyyy"
Decimal the standard .NET specifiers for Numeric values e.g. "F2" (fixed to 2 decimal places) or the custom .NET specifiers for Numeric values e.g. "00000"
Integer the standard .NET specifiers for Numeric values e.g. "x" (hexadecimal) or the custom .NET specifiers for Numeric values e.g. "#,#,," which would turn "2147483647" into "2,147"
IPAddress N/A - there are no custom format specifiers for an IP address; it is always mapped to a string in the format "0.0.0.0"