Skip to main content

Printing Date

This guide shows how to print date values into your PDF using n8n.


Step 1 — Prepare your template​

In the Eledo editor:

  1. Add a Text Box (TXT) component
  2. In Data (expression), enter a field name (for example DeliveryDate)
  3. Set the Type to Date
  4. Confirm and save the template

Date configuration


Step 2 — Use the template in n8n​

In your n8n workflow:

  1. Add the Eledo PDF node
  2. Select your credentials
  3. Choose your template
  4. Make sure Input is set to Guided Fields

Step 3 — Add and fill the field​

In the Eledo node:

  1. Click Add Date Field
  2. Select the field (for example DeliveryDate)
  3. Enter a date value into the Value field

Mapping date value


By default, dates may be displayed in an unexpected format depending on the input.

Use formatting functions in the template to control output.

Examples:

DATE(DeliveryDate, "yyyy-MM-dd")
DATE(DeliveryDate, "dd/MM/yyyy")
DATE(TODAY(), "yyyy-MM-dd")
tip

Learn more about date formatting:
→ Formatting Dates
→ Date Functions


Result​

When the workflow runs:

  • the value is passed to Eledo
  • Eledo fills the Text Box
  • the formatted date is printed in the document

Next steps​


Was this article helpful?

Yes
No