-
-
Save dannberg/48ea2ba3fc0abdf3f219c6ad8bc78eb6 to your computer and use it in GitHub Desktop.
--- | |
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 | |
``` |
I am getting the Parsing error shown below circled in RED after copying the RAW code from the Github page and pasting it into my Daily Note template file located in Extra/Journal/Template, Daily Note file. Can anybody in this forum please clarify to me why this error is being generated? It says "Expected one of the following:" but I do not know what it is referring to. I am using the latest Obsidian/Templater on a Windows 10 PC. Any advice welcome.
### Notes created today
Dataview: Error:
-- PARSING FAILED --------------------------------------------------
> 1 | List FROM "" WHERE file.cday = date("<%tp.date.now("YYYY-MM-DD")%>") SORT file.ctime asc
| ^
Expected one of the following:
'(', ')', '*' or '/' or '%', '+' or '-', ',', '.', '>=' or '<=' or '!=' or '=' or '>' or '<', '[', 'and' or 'or'
### Notes last touched today
Dataview: Error:
-- PARSING FAILED --------------------------------------------------
> 1 | List FROM "" WHERE file.mday = date("<%tp.date.now("YYYY-MM-DD")%>") SORT file.mtime asc
| ^
Expected one of the following:
'(', ')', '*' or '/' or '%', '+' or '-', ',', '.', '>=' or '<=' or '!=' or '=' or '>' or '<', '[', 'and' or 'or'
@1artist use these instead :
List FROM "" WHERE file.cday = date("<%tp.date.now('YYYY-MM-DD')%>") SORT file.ctime asc
List FROM "" WHERE file.mday = date("<%tp.date.now('YYYY-MM-DD')%>") SORT file.mtime asc
@Lavender-Daydream Most likely the directory structure of your query is incorrect. Make sure you verify that you use the same structure in your vault as is in the Dataview table. My secret weapon is ChatGPT. You can feed it a table and tell it what to change and it usually spits out a working table.
If you're running Obsidian on ChromeOS via Linux virtual machine, you need you replace
<% tp.file.creation_date() %>
with<% tp.file.last_modified_date("YYYY-MM-DD hh:mm") %>
or you'll consistently get1970-01-01 01:00