In FreeMarker Template Language (FTL) script, the date format is set as ‘October 1, 2023 – October 31, 2023’, So the client needs to change this date format to ‘01.10.2023 – 31.10.2023’ (DD.MM.YYYY). _startdate: [“2023″,”10″,”01”],_enddate: [“2023″,”10″,”31”], The code for the date format ‘October 1, 2023 – October 31, 2023‘ is given below 2. The code… Continue reading Date format in FreeMarker Template Language (FTL)
Tag: FreeMarker Template Language
Number format in FreeMarker Template Language (FTL)
In FreeMarker Template Language (FTL), to get the number format like xx,xxx.xx (eg. 12,345,678.00), use the following codes at the top of the script file, The result will be: 12,345,678.00 2. To get the number format in German (eg. 12.345.678,00), use the following codes, The result will be: 12.345.678,00
How to apply multiple Replace() functionality in FreeMarker Template Language (FTL)
Scenario: In our PDF template, the user needs to replace the company address with the following changes If the company address contains a comma, then replace it with empty that is, Replace the ‘,’ with ‘ ‘. If in the company address, the country name is ‘United States’, then replace it with ‘Deutschland’ Use the… Continue reading How to apply multiple Replace() functionality in FreeMarker Template Language (FTL)