Searched for a solution here and in the help vault without success.
What I’m trying to do
Hi,
I would like to automatically ad the creation date (and modification date where applicable) of new and existing notes in the front matter.
I know how to insert the creation date via a template and the {{date}} syntax when creating a new note but I have no idea how to retrieve the dates from the meta data for already existing notes.
I imagine that you could choose either of two options
install dataview, and then paste Angel’s codes, switch to Read Mode, and you should have what you want.
install templater, visit the templater documentation page, and find out how to do what you want using the examples on the documentation page.
The advantage of the templater option would be that the code would paste the actual date. Whereas the Dataview option can render the date from the note’s metadata but only whilst in read mode.
PS: @anon12638239, if I put the template for the modification date in the frontmatter, it will not be updated correctly. Therefore I use a private block with a small table right below the frontmatter block. I think it looks pretty nice especially because I use the cssClass “table-tiny” in the frontmatter for all my tables.