This doesn’t answer your question exactly, but it might spark an idea for you on how to proceed. On my dashboard, I like to list all the tasks I’ve done today. All my tasks live in my daily notes, which have file names like “20220617 Friday”. Here’s the code that pulls the completed ones for today:
Essentially, I’m choosing the file to pull the tasks from by reformatting today’s date to my daily note naming convention, and then matching on that. Like I said, I realize that probably doesn’t get you exactly where you need to go, but I hope it gives you at least something to work with.
@perpendie Do p.completion and dv.date('today') match exactly in date and time when they are supposed to match?