Example of parameter frm
The frm parameter enables you to display a date-time value or numeric value using a format string.
Date formats
Using the current date time
Format | Display |
---|---|
yyyy-mm-dd | 2024-11-22 |
dd/mm/yyyy | 22/11/2024 |
hh:nn:ss | 04:26:24 |
dddd dd mmmm | Friday 22 November |
ddd dd mmm | Fri 22 Nov |
mm-dd-yyyy hh:nn | 11-22-2024 04:26 |
Numeric formats
Using the Php variable $amount = 1023.2568
Format | Display |
---|---|
$ 0,000.00 | $ 1,023.26 |
$ 0,000. (1) | $ 1,023 |
(1) The dot (.) at the bottom means there is no decimal. |
Using the Php variable $rate = 0.751897
0.000 % | 75.190 % |
Conditional formats
Using the Php variable $amount2 = -255.4893
Format | Display |
---|---|
+0,000.00|-0,000.00|0|- | -255.49 |
Reusable formats
Formats curr1 and rate1 are defined using parameter tplfrms.
Format | Display |
---|---|
curr1=$ 0,000.00 |
$ 1,023.26 |
rate1=0.000 % |
75.190 % |