What I’m trying to do
I’m trying to get an inline query of dataview to return a date property, so that I can eventually get it to calculate the time between two dates. It is currently returning “-” whenever I try to display the property, which is in the date format. It displays dates that are in the same format as the property correctly, but just refuses to display the property’s date.
Things I have tried
The property in the properties list says “birthday: 0781-01-09”
The information desired as a table functions correctly.
```dataview
TABLE birthday, (birthday - date(1050-02-12)).years as "Total years"
WHERE file = this.file
```
If I input two dates manually like this, the inline query works
`= ((date(0781-01-09) - date(1050-02-12)).years)`
However as soon as I swap out one of the dates for the property, it only returns "-"
`= ((date(0781-01-09) - date(birthday)).years)`
Even an attempt to return just the property produces a "-"
`= date(birthday)`
My property is set to the “date” property type.
Is this a bug with dataview, or an issue with my settings somewhere?