Dyanmic date populates when I insert Template from a new note, but not when I right click, create new note from template

First, search the help docs and this forum. Maybe your question has been answered! The debugging steps can help, too. Still stuck? Delete this line and proceed.

What I’m trying to do

(Windows desktop app 1.13.4) I want to automatically put a creation date in my template properties. When I create a new note and then insert a tempate, the day’s date is added. But when I right-click on a folder and click on “create new note from template” i get the “null” error and no date.
Any idea how to fix this?

Things I have tried

I have this code:

URL:
tags:
source:
date: {{date:MM-DD-YYYY}}

I’m pretty sure Create new note from template is a Templater (with an “r”) command. Whereas Insert template and the date syntax you showed are for the core plugin Templates (with an “s”).

They have different settings and syntax.

So, does this mean I can’t make it work for both, or is there a syntax that would work for both?

Thanks

To use both, easiest path might be to make a “whatever (core).md” template and a “whatever (Templater).md” template and set/choose the right one as needed.

There’s no single syntax for both.

Short of writing a separate script, I think Templater doesn’t offer the kind of logic and timing that a single template would require (but have never looked it up).