In script-specified output such as Scan items with {//} as their output format, dates are automatically formatted using the currently defined DateDisplay or the default as defined in Program Options.
FormatDate is provided for the rare case where you need a specific date formatted differently from the current setting.
Example
DateStr: FormatDate(BarDate, "MM/dd/yyyy")
Formats a numeric date using Windows date format picture strings.