Skip to content

Error when parsing date #156

Open

Description

@jaysonwcs

I'm getting an error when formatting a variable with datetime.
This is the template I wrote:

---
template_title: {{datetime format = "dddd D [de] MMMM de YYYY"}}

---
#### {{datetime format="HH:mm:ss"}}:

---

I get the following error:

Image ---

Here's my setup:

Joplin 3.5.13 (prod, win32)
Templates: 3.0.0

Activity

  1. DheerajRawandhe commented on Mar 31, 2026

    @DheerajRawandhe

    template_title: '{{datetime format="dddd D [de] MMMM [de] YYYY"}}'

    I think the issue is caused by YAML parsing the datetime expression incorrectly.
    You need to wrap the whole expression in single quotes to avoid errors.

    Try this:

    template_title: '{{datetime format="dddd D [de] MMMM [de] YYYY"}}'

    This should fix the parsing error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions