What I’m trying to do
Create a Dataview Table which displays all files that have been modified today.
I am purposely NOT using file.mtime because I want to know each day the file has been modified.
I am using the “Update modified date” community plugin which is working beautifully.
It’s adding the date, each time a file is modified, when it does so, it looks like this, in the properties or frontmatter:
Modified:
– 2023-11-26
– 2023-11-29
“Modified” is a property, set with the “Date” property type.
As I edit the file, the plugin keeps appending to this list, with a new date. It’s great!
The problem I have, is because I’m working with a list, or multiple entries to the “Modified” property, dataview isn’t finding any results.
If I switch off the feature within the community plugin “Update modified date” which appends the Modified date, and instead replaces the exisiting date with the most recent date, the Modified property looks like this:
Modified: 2023-11-29
When I configure it this way, my data view table works!
But when the dates are like this:
Modified:
– 2023-11-28
It doesn’t work.
Things I have tried
The code I am using in my Data View is as follows:
``` dataview
TABLE modified, updated as tags, type, status
FROM "" AND !"Journal" AND !"Templates"
WHERE dateformat(Modified, "YYYY-MM-dd") = dateformat(date(2023-11-29), "YYYY-MM-dd")
It’s almost as if I have to get data view to ignore the fact that the date is presented in the Modified property with a - in front of it.