Trying to get todays date in a dataviewjs template

This works with the hardcoded date

dv.taskList(dv.pages().file.tasks 
  .where(t => !t.completed)
  .where(t => t.text.includes('2023-07-21')))

But I can’t seem to get it right using a programmic value for a template. What am I missing here?

dv.taskList(dv.pages().file.tasks 
  .where(t => !t.completed)
  .where(t => t.text.includes(dv.date('today'))))

I was able to get it to work with

dv.taskList(dv.pages().file.tasks 
  .where(t => !t.completed)
  .where(t => t.text.includes(dv.luxon.DateTime.now().toFormat('yyyy-MM-dd'))))

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