Dataviewjs syntax problem


i have a code that gives me the tasks that contain the tag #05-08-2023.

is there a way to put a variable in the code for the tag?

the variable should look like this:
dateformat(date(today), “dd-MM-yyy”)

the code is:

dv.header(2, '');  
.where(t => !t.completed && t.tags.includes('#05-08-2023')));

for the tag ->#05-08-2023 the variable
dateformat(date(today), “dd-MM-yy”) should be used …

i can’t get this to work :frowning:

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.