-
-
Save bennewton999/62b4a034445a24532591bc4c55a52cf5 to your computer and use it in GitHub Desktop.
| --- | |
| creation date: <% tp.file.creation_date() %> | |
| tags: DailyNote <% tp.file.title.split('-')[0] %> | |
| --- | |
| modification date: <%+ tp.file.last_modified_date("dddd Do MMMM YYYY HH:mm:ss") %> // This doesn't currently work in front matter, hoping that gets fixed. | |
| # <% tp.file.title %> | |
| << [[<% tp.date.now("YYYY-MM-DD", -1, tp.file.title, "YYYY-MM-DD") %>]] | [[<% tp.date.now("YYYY-MM-DD", 1, tp.file.title, "YYYY-MM-DD") %>]]>> | |
| ## Tasks | |
| #### Over Due | |
| ```tasks | |
| not done | |
| due before <% tp.date.now("YYYY-MM-DD") %> | |
| ``` | |
| #### Due Today | |
| ```tasks | |
| not done | |
| due on <% tp.date.now("YYYY-MM-DD") %> | |
| ``` | |
| #### New Today | |
| - [ ] | |
| ## Meeting Log | |
| ### 0000: | |
| ## Daily Log | |
| ### [[Project 1]] | |
| ### [[Project 2]] | |
| ### [[Project 3]] | |
| ## Daily Check List | |
| ### Start of Day | |
| - [ ] Check Email | |
| - [ ] Check Teams | |
| - [ ] Check showing online | |
| - [ ] Check Calendar - Time Block | |
| ### End of Day | |
| - [ ] Show Offline | |
| - [ ] Clean Unused Headings in Daily Log | |
| - [ ] Check tomorrow's calendar | |
| ## Other Tasks | |
| #### No Due Date | |
| ```tasks | |
| not done | |
| no due date | |
| ``` | |
| #### Done Today | |
| ```tasks | |
| done on <% tp.date.now("YYYY-MM-DD") %> | |
| ``` |
Thanks @bennewton999. I have updated the templates as advised. However, my mistake was that I didn't use the Open Daily command to create daily note. Instead, I was manually creating the note and insert the daily note template. It is now working correctly. Thanks :-)
Is there a way to get these codes in other languages?
Now all my notes show the date in English, but I'd like them to be in Dutch.
@Broodje-met-Beleg use default YYYY-mm-dd format so u always have option to order your stuff by date
Hello! I just finished reading this whole thread and reviewed how you use the task plugin, but I still can not get Other tasks from duplicating what I have, even when I set a date for everything to test. For example, I set Check Email to daily, and set a date for everything just to test, but it still shows under Other Tasks. How would I go about preventing this?
@aCyberVoid I 'think' (I'm new to Obsidian and Ben's content) obsidian-tasks is picking up the tasks as defined in the template also, hence the duplicates. obsidian-tasks has a filter for Paths so I added a path does not include Templates to the block, where 'Templates' is the name of my subfolder, like:
```tasks
not done
no due date
path does not include Templates
```
I no longer have duplicates and nothing else appears broken, but perhaps there is a better way to solve this?
Hi - found your article on Medium and decided I liked your template and I was going to start using it. I am using the daily note plugin with this template. Templater is installed. when I click on daily notes to create a new note, I get an "invalid reference date format". I am not sure where to start looking to correct this.
@labrlearning - if you look at line 10, we are using the file name as the input for the dates for links to go forward and back a day. If you're not using the same format for your file names, you will have to update this line.
Hi - found your article on Medium and decided I liked your template and I was going to start using it. I am using the daily note plugin with this template. Templater is installed. when I click on daily notes to create a new note, I get an "invalid reference date format". I am not sure where to start looking to correct this.
Actually had a heck of a time getting the top portion of the doc to template correctly. Adding + seemed to do the trick, also had to adjust whitespace:
---
creation date: <%+ tp.file.creation_date() %>
tags: DailyNote-<%+tp.file.title.split('-')[1]%>-<%+tp.file.title.split('-')[2]%>
---
modification date: <%+ tp.file.last_modified_date("dddd Do MMMM YYYY HH:mm:ss") %>
# <%+ tp.file.title %>
<< [[<%+ tp.date.now("YYYY-MM-DD", -1, tp.file.title, "YYYY-MM-DD") %>]] | [[<%+ tp.date.now("YYYY-MM-DD", 1, tp.file.title, "YYYY-MM-DD") %>]]>>how to deal with tasks from daily template in no due?
Thanks @itsmyfirstname i had the same problem, that fixed it perfectly.
The only issue I have with this now is when Obsidian creates the daily note, these template fields all show up as the literal string “NaN”. But if I create a note and add the template, it works as expected.
Not sure if this is an obsidian Mobile thing or what. I’ll have to try with a desktop client.
Thanks @itsmyfirstname i had the same problem, that fixed it perfectly.
The only issue I have with this now is when Obsidian creates the daily note, these template fields all show up as the literal string “NaN”. But if I create a note and add the template, it works as expected.
Not sure if this is an obsidian Mobile thing or what. I’ll have to try with a desktop client.
I was able to fix this by
- Making a folder for templates
- setting templates path in templater
- Setting daily temple to nothing
- Making new daily temple with ctr + p + open daily note
- alt + e select the template
I did however have to add this dataview to make sure it did not pick up tasks i added into the template (using dataview.js)
dv.taskList(dv.pages() .file.where(f => f.name != "Daily Note") .tasks.where(t => !t.completed))
Thanks for sharing this.
In case it helps anyone, I wrote a CSS snippet to slight reduce the frontmatter visible priority. There isn't a selector to target the whole frontmatter (no containing div) but its better than nothing:
.cm-s-obsidian span.cm-def{
font-size:25%;
}
.cm-s-obsidian .cm-hmd-frontmatter {
font-size:75%;
}
.cm-s-obsidian span.cm-meta {
color: var(--text-faint);
opacity:0.5
}Hi, good morning, at first thanks so much for sharing your template. I use it since a lot of time. In the last weeks I've not worked a lot with Obsidian. Today I would start use it again and the following Tasks collections doesn't work anymore:
- Over due
- Due today
- Done today
I'm not sure what changed or what I've to do, to fix it.
Can you help me or give me a hint what I have to do to be able to use the task collections again?
Sorry - this is something I am no longer using or keeping up to date.







You have to update the template, the process the template in a note. Cutting and pasting the Templater code directly into the note is just considered text. That is why it’s not working.