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.
As you say, you have replaced the template in the active file, so the template has been run and is no longer in the file.
To replace it, paste in the code again, or just create that code as a template and insert that, optionally with its own shortcut: I use CTRL OPT CMD ENTER to insert a Templater date-and-time code (<% tp.date.now("YYYY-MM-DDTHH:mm") %>
) into my notes multiple times a day.
1 Like
Thank you, will try that
1 Like