mo-seph / obsidian-note-from-template

Simple plugin to create Notes from a template, and fill in fields defined there
MIT License
108 stars 9 forks source link

Cannot add currentDate to template #44

Closed Wizz4rrd closed 1 year ago

Wizz4rrd commented 1 year ago

I'd like that when a new page is made with a template, the date is added somewhere on the page. I can't get it working.

I've tried adding {{date}}, {{now}}, {{currentDate}} and {{now:currentdate}} to YAML and in the note itself.

What am I missing?

slashk commented 1 year ago

Try using

{{Date:currentDate:MM-dd-yyyy}}

This works for me (you can change the MM-dd-yyyy to your preferred format.