Date format in FreeMarker Template Language (FTL)

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)

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)