I am using TEMPLATER and created a DAILY NOTE Template that auto generates YAML META Data at the top. BUT
YAMLE Auto date creation.
The code is below
However it is not generating the date automatically and I have to select it and do an CTRL +ALT +D to correct it.
Can someone tell me what is wrong with the code? Am I missing a space or something?
Date <% tp.date.now (“MM-DD-YYYY”) %>
Type Daily Note
Mood
Your template is missing colons, for starters:
---
Date: <% tp.date.now ("MM-DD-YYYY") %>
Type: Daily Note
Mood:
---
And I would strongly suggest using the "YYYY-MM-DD"
format if you intend to use that date in queries or similar later on. That is the format which will be recognised as a date by various plugins.