Skip to content

Merge Tag Formatting

Most merge tags support a format attribute.

Examples:

  • {{Date format="MM-DD-YYYY"}}
  • {{Opportunity.Amount format="$%,.02f"}}

The format value is passed directly to the Salesforce native field type format() method.

When a format is not defined, then the default Salesforce format() is returned.

The Salesforce field type determines applicable format syntax.

The Date and DateTime formats generally implement the Java SimpleDateFormat specification, which can be found here.

You can also try various flavors of printf formats for numbers, currencies, decimals, and strings.