Showing Tasks with a specific automated generated date

What I’m trying to do

I’m trying to display only tasks in my daily notes from the date where the daily notes belong to.

My question is, who can I add an automated date into the field.


starts (before, after, on) <date>

I’ve already created a variable called dailynotedate with date of the daily note which must not be equal to the date the note created.

created: 2022-11-14 10:36
dailynotedate: 2022-11-11

and unfortunately, all my tests went wrong. Appreciate any help or idea on that.
Many thanks in advance