“Clear” should ideally set the value to the equivilent of null; not “”. One of the consequences of the current behaviour is that the Dataview plugin doesn’t work on a date property whose value is “”.
I had the following startdate definition in my three test files:
startdate: "" (in "Empty string date")
startdate: (in "Empty date")
startdate: 2023-11-10 (in "Just a date")
and ran the following queries:
## Type of "startdate"
```dataview
TABLE startdate, typeof(startdate)
WHERE file.folder = this.file.folder
AND file != this.file
```
## Require "startdate"
```dataview
LIST
WHERE file.folder = this.file.folder
AND file != this.file
WHERE startdate
```
As can be seen within the last query, both no value and the empty string are considered false value, so if you require a date using something like WHERE startdateneither of those options are any problem.
So what kind of output is erroneous in your cases? And could they not be handled using choice() or default() possibly?