DataviewJS get files matching same date as note's title

As you’ve discovered dv.date("today") == dv.date("today") is not true, which is kind of a bummer, and you need to do either dv.date("today").ts == dv.date("today").ts to get it to be equal, or do the dv.date("today").toFormat("yyyy-MM-dd") == dv.date("today).toFormat("yyyy-MM-dd") which you’ve opted for.

The first of this format is slightly better, but both can be used, when comparing against date ranges.

For a lengthy post on the ickyness of dates see link below:

1 Like