Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

This lesson will show you how to apply different formats to your mergefields when creating a document template. To apply a format to a mergefield, simply enter it as shown in the examples.

Date Formats

 

  •   { MERGEFIELD CurrentDate } = 31/10/2012
  •   { MERGEFIELD CurrentDate \@ "MM-dd-yyyy" }= 10/31/2012
  •   { MERGEFIELD CurrentDate \@ "dd-MMM-yyyy" }= 31-Oct-2012
  •   { MERGEFIELD CurrentDate \@ "dd.MM.yyyy" }= 31.10.2012
  •   { MERGEFIELD CurrentDate \@ "dd MMMM yyyy" }= 31st October 2012

...

The month part of the date functions slightly differently as two "M"s will display the month numerically, four will display it in full as text and three will display abbreviated text.

Time Formats

 

  •   { MERGEFIELD CurrentTime }= 21:00
  •   { MERGEFIELD CurrentTIme \@ "h:mmAM" }= 9:00AM
  •   { MERGEIFLED CurrnetTime  \@ "HH:mm" }= 21:00

...

Time formats are very similar to dates but use "m" to signify minutes and "h" to signify hours. two capital "H"s will use 24 hour time whilst a single lowercase "h" with "AM" or "PM" at the end of the format will use 12 hour time.

Financial Format

 

  •   { MERGEFIELD Case.Custom.AmountOfLoan \# "$#,##0.00" }= $1,099.50

...