Skip to content

Instantly share code, notes, and snippets.

@dannberg
Last active May 12, 2025 10:23
Show Gist options
  • Save dannberg/48ea2ba3fc0abdf3f219c6ad8bc78eb6 to your computer and use it in GitHub Desktop.
Save dannberg/48ea2ba3fc0abdf3f219c6ad8bc78eb6 to your computer and use it in GitHub Desktop.
Dann Berg's Daily Note Template for Obsidian. Uses Dataview & Templater plugins. Should be saved as a Markdown file in Obsidian. Read the full tour: https://dannb.org/blog/2022/obsidian-daily-note-template/
---
created: <% tp.file.creation_date() %>
---
tags:: [[+Daily Notes]]
# <% moment(tp.file.title,'YYYY-MM-DD').format("dddd, MMMM DD, YYYY") %>
<< [[Timestamps/<% tp.date.now("YYYY", -1) %>/<% tp.date.now("MM-MMMM", -1) %>/<% tp.date.now("YYYY-MM-DD-dddd", -1) %>|Yesterday]] | [[Timestamps/<% tp.date.now("YYYY", 1) %>/<% tp.date.now("MM-MMMM", 1) %>/<% tp.date.now("YYYY-MM-DD-dddd", 1) %>|Tomorrow]] >>
---
### πŸ“… Daily Questions
##### 🌜 Last night, after work, I...
-
##### πŸ™Œ One thing I'm excited about right now is...
-
##### πŸš€ One+ thing I plan to accomplish today is...
- [ ]
##### πŸ‘Ž One thing I'm struggling with today is...
-
---
# πŸ“ Notes
- <% tp.file.cursor() %>
---
### Notes created today
```dataview
List FROM "" WHERE file.cday = date("<%tp.date.now("YYYY-MM-DD")%>") SORT file.ctime asc
```
### Notes last touched today
```dataview
List FROM "" WHERE file.mday = date("<%tp.date.now("YYYY-MM-DD")%>") SORT file.mtime asc
```
@nrakochy
Copy link

Hi there, thanks for sharing. I just ran into the same issue as @1artist with the parsing error. Looks like I needed to enable a few extra flags to fix the template. Hope this helps. Cheers πŸ‘

template-enable-templater

@Pdfulkar
Copy link

Screenshot 2025-03-19 112829
getting this error how should i tackle it

@dannberg
Copy link
Author

@Pdfulkar it looks like Templater is not properly executing to turn the template into a note. For one-offs, you can use the command palette to trigger Templater: Replace templates in the active file or make sure your settings are adjusted so that Templater runs when you create a new note from a template.

@Pdfulkar
Copy link

@Pdfulkar it looks like Templater is not properly executing to turn the template into a note. For one-offs, you can use the command palette to trigger Templater: Replace templates in the active file or make sure your settings are adjusted so that Templater runs when you create a new note from a template.

Yup Now It's Working As it should be
thanks @dannberg

@Pdfulkar
Copy link

Pdfulkar commented Apr 4, 2025

now recently Found out that the yesterday and Tomorrow buttons are giving totally wrong data specifically it is giving same date for each button
Screenshot 2025-04-04 162644

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment