Obsidian Dataview Code for a “Created Today” View

I ran across someone who used the Templater and Dataview plugins for Obsidian to create a “Created Today” section in Daily Notes that shows all notes created on the same day as the Daily Note.

I made some minor changes for my purposes that I put in a Daily Note Templater template:

## Created Today

```dataview 
TABLE string(split(string(file.ctime), " - ")[0]) as "Created" WHERE contains(file.path, "<% tp.date.now("YYYY-MM-DD") %>") OR (file.cday = date("<% tp.date.now("YYYY-MM-DD") %>") AND !regexmatch("^\d{4}-\d{2}-\d{2}", file.name)) SORT file.ctime ASC
```

This will create a section in the Daily Note that will look like this:

Obsidian Created Today Dataview / Templater Code
Obsidian Created Today Dataview / Templater Code

Leave a Reply