It’s simply invalid YAML, check using the YAML Online Parser.
The
Created on:{{date:YYYY-MM-DD}}-{{time:HH:mm:ss}}
looks like a long key to YAML, and if you used
Created on: {{date:YYYY-MM-DD}}-{{time:HH:mm:ss}}
(with a blank after “Created on:”), it would still be invalid YAML, since colons are special.
You probably want to try something like
Aliases: [""]
Created on: "{{date:YYYY-MM-DD}}-{{time:HH:mm:ss}}"
Tags:
Source:
See Also:
Comments:
(use a blank after Created on: and use apostropes (") around the date/time string part).
Since the above is Obsidian Template code (have you switched on Settings → Core plugins → Templates?), you can also just use a blank after “Created on:” and expand the template first.
Both
Created on: 2021-07-22-08:40:13
and
Created on: "2021-07-22-08:40:13"
yield the same string in YAML.