The
Format command, which has a shorthand equivalent of
?, is similar to the
Result command, except that it is used to specifically change the output format of a given value, or in the case of a
String format, multiple variables. The
Format command expects (3) parameters: datatype
(date, number, string), format
(see .Net Framework Format Strings), and value
(XPath reference to node value).
Unlike other commands, Format also has three ‘shortcuts’, being that you can omit the
Format (or
?) portion of the command, and simply use the commands:
Date,
Number or
String, each of which are described in more detail below. Other than the obvious lack of initial parameter, they operate identically.