Example of frm parameter use

The frm parameter enables you to display a date-time value or numeric value using a format string.

 

Examples of date formats

Using the current date time
Format Display
yyyy-mm-dd [var..now;frm='yyyy-mm-dd']
dd/mm/yyyy [var..now;frm='dd/mm/yyyy']
hh:nn:ss [var..now;frm='hh:nn:ss']
dddd dd mmmm [var..now;frm='dddd dd mmmm']
ddd dd mmm [var..now;frm='ddd dd mmm']
mm-dd-yyyy hh:nn [var..now;frm='mm-dd-yyyy hh:nn']

Examples of numeric formats

Using the Php variable $amount = 1023.2568
Format Display
$ 0 000.00 [var.amount;frm='$ 0 000.00']
$ 0 000. (1) [var.amount;frm='$ 0 000.']
(1) The dot (.) at the bottom means there is no decimal.

Using the Php variable $rate = 0.751897
0.000 % [var.rate;frm='0.000 %']

Example of conditional format

Using the Php variable $amount2 = -255.4893
Format Display
+0 000.00|-0 000.00|0|- [var.amount2;frm='+0 000.00|-0 000.00|0|-']