fixed the one dash in the date part, but i still face the same issue where are the templates variables {{date}} and {{title}} do not get the value when the template is applied on a note.
… seems to work for me in the sandbox vault when I apply the template through the command palette (using the command Templates: Insert template) on a brand new empty note renamed simply test
In your first example, you have spaces in your {{ title }}. Could that be the problem? (Edit: I missed your previous reply about it working with the command. Still worth pointing out.)