Tag that transforms dates into words

To obtain a date in text format, we will add “LETTERS” into the tag of a Date field. This way, the date picked on the calendar of the form will be shown in words in the document.

12/03/2022 will be shown in the document as “March twelfth, two thousand and twenty-two”. 

 

How to use the “LETTERS” complement?


We will need to set up the field as usual, following the indications of this article. In brief, we will write the tag in the document and create the field:

dates to letters tag configuration

Then, without altering the configuration tag of the field, we will only need to add “LETTERS” into the tag that we wrote in the template. For example, {date} would become {dateLETTERS}.

dates to letters tag configuration

Thanks to this complement, the platform automatically transforms the answer introduced in the form into words.

 

What if we need the date to be shown in a particular language?


For the transformation to be effective in the corresponding language, right after “LETTERS” we have to add an underscore, followed by the abbreviation of the language in uppercase, all inside the tag.

At the moment, the platform has up to eight transformation languages: English (“_EN”), Spanish (“_ES”), Catalan (“_CA”), Deutsch (“_DE”), Austrian German (“_DE_AT”), French (“_FR”), Italian (“_IT”) and Portuguese (“_PT”).

Example: 10/12/2022

  • In English, {dateLETTERS_EN}
    December tenth, two thousand and twenty-two

  • In Spanish, {dateLETTERS_ES}
    diez de diciembre de dos mil veintidós

  • In Catalan, {dateLETTERS_CA}
    deu de desembre del dos mil vint-i-dos

  • In Deutsch, {dateLETTERS_DE}
    zehnten Dezember zweitausendzweiundzwanzig

  • In Austrian German, {dateLETTERS_DE_AT}
    zehnten Dezember zweitausendzweiundzwanzig

  • In French, {dateLETTERS_FR}
    le dix décembre deux mille vingt-deux

  • In Italian, {dateLETTERS_IT}
    Dieci dicembre duemilaventidue

  • In Portuguese, {dateLETTERS_PT}
    dez de dezembro de dois mil e vinte e dois

 

Then, for the platform to correctly identify the tags, we must select all the languages used through the "Multilanguage" dropdown, in the template/settings/information section:

MultilanguageIf no language is selected, the main language of the template will be used by default.

 

Here you can see an example of the tags used on the template and the result on the final document.

Template:

In Birmingham, on {dateLETTERS_EN}.

 

Result:

In Birmingham, on December tenth, two thousand and twenty-two.