correctly format date sample

Tom Free 2022-05-16 11:18:42 +02:00
parent b5cca12e1c
commit e3564d29a7

@ -22,7 +22,7 @@ As an example, imagine you collect server outage incidents and write some notes.
* 2022-05-09: System crash
* 2022-05-15: Backup delay
You can automatize the date assignment by assigning a label `#titleTemplate="${now.format('YYYY-MM-DD')}: " to the parent note "Incidents". Whenever a new child note is created, the title template is evaluated with the injected <a href="https://day.js.org/docs/en/display/format">now</a> object.
You can automatize the date assignment by assigning a label `#titleTemplate="${now.format('YYYY-MM-DD')}: "` to the parent note "Incidents". Whenever a new child note is created, the title template is evaluated with the injected <a href="https://day.js.org/docs/en/display/format">now</a> object.
Second variable injected is <a href="https://zadam.github.io/trilium/backend_api/Note.html">parentNote</a>, an example could be `#titleTemplate="${parentNote.getLabelValue('authorName')}'s literary works"`.