Template Error

There is an error on my daily template with the date format.

I’m using “Templater” plugin. It worked for a few day. Then when I create new daily note by click on the date on “calendar” plugin. It shown this message.

“template parsing error, aborting , check console for more information”

What I see is these date template doesn’t work as follow.

[[<% tp.file.title %>]]

< [[Journal/Daily/<% tp.date.yesterday(“YYYY-MM-DD-ddd”) %>|Yesterday]]

[[Journal/Daily/<% tp.date.tomorrow(“YYYY-MM-DD-ddd”) %>|Tomorrow]] >

<% tp.day.now %>

Thank you for your help

For starters I don’t think there is any tp.day.now. Try using tp.date.now()

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.