Skip to content

Instantly share code, notes, and snippets.

@nicolevanderhoeven
Last active November 9, 2022 14:18
Show Gist options
  • Save nicolevanderhoeven/a164dc7033ca461ae1c9b0d474e80cd4 to your computer and use it in GitHub Desktop.
Save nicolevanderhoeven/a164dc7033ca461ae1c9b0d474e80cd4 to your computer and use it in GitHub Desktop.
Obsidian Daily Note template with a DataviewJS snippet for returning tasks due on a certain date

{{title}}

Tasks due today

dv.taskList(dv.pages().file.tasks 
  .where(t => !t.completed)
  .where(t => t.text.includes("{{date:YYYY-MM-DD}}")))

Log

@jauninp
Copy link

jauninp commented Nov 9, 2022

Thank you for your note!
Just a small idea: instead of "today" date I put the title for the date.

dv.taskList(dv.pages().file.tasks 
  .where(t => !t.completed)
  .where(t => t.text.includes("{{date:{{title}} }}")))

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