Using the Dataview plugin for last modified and create time

What I want to do

I would want to use it in a Template for having the date of creation of a file and the last modification.

I only want it on the file.
I don’t want a list or table of ALL my document, just this specific doc.

Is this Possible ? If yes, how ?
1 Like

I think that this is the manual page which applies to your question:
https://blacksmithgu.github.io/obsidian-dataview/data-annotation/

Something like this:


**created**
`=this.file.ctime`

or

**created**
`=dateformat(this.file.ctime, "yyyy.MM.dd - HH:mm")`

---

**last modified**
`=this.file.mtime`

or

**last modified**
`=dateformat(this.file.mtime, "yyyy.MM.dd - HH:mm")`

— options with “dateformat” —
dateformat( ) allows you to define the format of date/time - see this link: luxon/formatting.md at master · moment/luxon · GitHub

3 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.