Click link to create new note with template

Things I have tried

I tried using templatr (<% tp.date.now(“Do MMMM YYYY”) %>) but when I click the link it creates a new note with the title “<% tp.date.now(“Do MMMM YYYY”) %>” instead of setting it to the actual date.

What I’m trying to do

  1. I have a dashboard, and basically I would like a link to create today’s daily note, with the title of the note being today’s date in the format yyyy-mm-dd.

  2. If possible, it would also be great if a template is inserted by default upon clicking.

Any of these work for you in the file? Just add as appropriate to the template you use for daily notes.

<% tp.date.now("Do MMMM YYYY") %>

<% tp.date.now("YYYY-MM-DD") %> at <% tp.date.now("HH:mm") %>

<% tp.date.now("YYYY-MM-DD") %>

And the note title comes from the ‘Daily Notes’ date-format setting.

Thanks, but I ended up figuring out how to do it

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