Hi everyone. I am trying to make a table in my daily note that lists all other notes scheduled on that same day, so there is a link to them and a little check-box.
For this, the metadata field with the date is called “fc-date” and the query can simply search for the name of the daily note since its name is just the date written in the exact same format.
I’ve done, like, this for example. I’ve been able to sort the files (for example, list everything before or after the date) but I haven’t been able to get it to just pull files matching the date.
With this, for example, I can get part of the list to pull. But I’m not sure what to do to make it just pull the file with the correct date. I don’t really do much programming or anything so I’m not really familiar with javascript.
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: