Working dataviewjs script now fails on "striptime" #2249
Replies: 1 comment
-
Another interesting question is why do you use And the way the query is written currently, you need to verify that every file in your vault has a good type on the Finally, even though Obsidian approves of the date & time field, that doesn't mean that Dataview will approve. One critical difference is seen below: Obsidian approves of "2024-03-17 22:05:00", which to Dataview will be considered a string. A proper test of date within dataviewjs would rather be to do something like:
Potentially depending on how you've set up your vault with templates and date&time insertions you could consider using Do note that you can enter this date string with a space, and Obsidian treats as a date&time, but if you change using the properties editor it'll also change to become a date&time (with the |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I have created a script to implement a "freeze/burnout" feature that adds a static list of created files for my daily note ( "Burning out" dataviews #42 )
I verified that the following script worked as intended
But after I implemented additional parts to add similar functionality for the "changed" and "reviewed" properties, in further tests the above script now fails with
I do not understand why it suddenly complains about a "string" argument, as the "created" property was and still is of type "Date & Time" (verified this in Obsidian properties view).
Beta Was this translation helpful? Give feedback.
All reactions