I have used the $string("MMM dd, yyy") bit of code to create the date format desired (Mar 12, 2020) on sales order and purchase order printout pdf template.
However, when I tried to do so on the Invoice printout pdf template, I was only successful in doing so for the record.trandate field and the record.duedate fields.
When I tried to do the same for the record.createdfrom.trandate field, I had issues. Below are my notes regarding this...
<td>${record.createdfrom.trandate}</td> DOES Work (But gives undesirable date format of 03/12/2020 instea of Mar 12, 2020)
<td>${record.createdfrom.trandate?string("MMM dd, yyyy")}</td> Does NOT Work and gives error message below.
Error on line 178, column 13 in template.
For "...(...)" callee: Expected a method, but this has evaluated to a string (wrapper: f.t.SimpleScalar):
==> record.createdfrom.trandate?string [in template "template" at line 178, column 15]
----
FTL stack trace ("~" means nesting-related):
- Failed at: ${record.createdfrom.trandate?string(... [in template "template" at line 178, column 13]
----