Obsidian Daily Notes
Daily Note script using Templater, Calendar, and Dataview
COMPUTEROBSIDIAN
Moi
4/24/20251 min read


I've settled on a Daily note format that works really well, so I want to share it. It uses Templater, Calendar, YAML, and best of all some Dataview scripts to show some useful information. I found the data scripts from scouring the forums and changed them a bit to give me what I wanted. I hope you find this useful too.
Requirements:
1. Obsidian
2. Templater plugin
3. Calendar Plugin
4. Dataview plugin
Clicking on today's date on the calendar creates the daily note using the template.
Create the template using the script below.
Place the template in your templates folder.
Configure Settings > Daily notes as shown in the screenshot at the bottom of the page.
"On This Day" will show you Daily Notes made a year ago to the day.
If you're looking at an old note it will list notes made in future years on the same day.
"Note Activity Today "shows notes you made on the same day as the current daily note.
Templates and Daily Notes are excluded. Copy everything below starting with the 3 dashes:
---
type: Daily note
Created: "{{date: YYYY-MM-DD-dddd}}"
On this day: "[[{{date-1Y: YYYY-MM-DD-dddd}}]]"
---
# <% moment(tp.file.title,'YYYY-MM-DD').format("dddd, MMMM DD, YYYY") %>
___
### On This Day...
```dataview
TABLE
FROM "Daily notes"
WHERE dateformat(file.day, "MM-dd") = dateformat(this.file.day, "MM-dd")
AND ((this.file.day = date(today) AND file.day < this.file.day)
OR (this.file.day != date(today) AND file.day != this.file.day))
```
<BR><BR>
### Note Activity Today...
```dataview
TABLE created, modified, type, tags
FROM "" AND !"Daily notes" AND !"Templates"
WHERE contains(dateformat(file.ctime, "YYYY-MM-dd"), dateformat(this.file.day, "YYYY-MM-dd")) OR contains(dateformat(file.mtime, "YYYY-MM-dd"), dateformat(this.file.day, "YYYY-MM-dd"))
SORT created asc
```

