Skip to content
Discussion options

You must be logged in to vote

The query today (August 6th) evaluates to the string #date/08/06

The following string expression from the query you provided does not evaluate to that string
`="#date/" + date(today).month + "/" + date(today).day`
will evaluate to #date/8/6

The fields on date are all integers/numbers (not formatted strings) so when you add them to a string they do not have the extra zero. To get the query you want you need to use dateformat

The following query should work

```dataview
list
from #person
where contains(file.tags, "#date/"+dateformat(date(today), "MM/dd"))
```

You can find other format options in the luxon docs

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@tomzorz
Comment options

Answer selected by tomzorz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
help Help with dataview features.
2 participants
Converted from issue

This discussion was converted from issue #386 on August 06, 2021 01:13.