Variable Syntax Changes from Version 1

Report Commander 1.x had a limited capability for inserting the date and time in file names and report parameters (see the related version 1 help topic). This feature has been replaced beginning in version 2 with the much more flexible variables and functions features, which use a different syntax than the version 1 formatting tokens.

The Command Runner will continue to accept the old format so your existing command-line configurations will continue to work, but any projects or command lines created or edited in the Project Editor or Command Line Builder will use the new format (the format will be converted automatically when you use a command line to create a project). This means that if you generate a command line in version 2 that uses date/time tokens, the command line won't work correctly if you run it on another computer that has version 1.x.

In version 1 you could insert a date/time value based on the date/time at runtime using either of these formats:

{formatPattern}

{offset:formatPattern}

where formatPattern is a sequence of characters indicating how the date/time should be formatted, and offset is an optional offset allowing you to add or subtract months, days, or hours from the current date.

In version 2, this capability has been replaced by the now function. The following table illustrates the new equivalents of old formatting patterns:

Version 1 Syntax Version 2 Syntax Notes
{yyyy-MM-dd} @now("yyyy-MM-dd") Inserts the current date in yyyy-MM-dd format.
{-1m:MM/01/yyyy} @now("MM/01/yyyy",-1,month) Inserts the first day of the previous month.
{+1h:HH:mm} @now("HH:mm",1,hour) Adds 1 hour to the current time and inserts it in HH:mm format.