Making a Daily Notes template that uses the date of the daily note for tasks

I use the Daily Note feature, and paste this text in to show tasks that are due on the date listed on the daily note, e.g.,:

[!check] Due today

due 2025-10-10
not done

However, I manually copy/paste this every time I make a Daily Note, and change the date manually as well (which I know is a bit lame, still new to Obsidian stuff).

I have been horsing around with Template (core) and Templater (community) plugins, but cannot figure out a way to:

  1. Create the Daily Note
  2. Insert a Daily Note template that lists only the tasks due that day (not today, but specifically matching the date of the Daily Note, and staying that way).

There are a some of requests similar to this, but I cannot seem to get any of them to work (I am new to Templater, and am really not sure how to get these going… sorry).

If anyone could suggest a script, this would be most helpful.

Thanks!

The following may help:

<%*
const ctime = moment(tp.file.creation_date());
const now = moment(tp.file.title, "YYYY-MM-DD").hour(ctime.hour()).minute(ctime.minute()).second(ctime.second());
-%>
---
created: <% now.format('YYYY-MM-DDTHH:mm:ss') %>
---

My daily notes are named year-month-day. ctime is used to get current time. You could drop it if you do not care about time. It allows me to sort all notes created on a day by time of day. I.e., I add a created property for all my pages.