Dataview query for notes with yaml atributes using ISO "YYYY-MM-DDThh:mm"

What I’m trying to do

I have been using a metadata propriety called “created”, that has the ISO format.

I use in every note in my obsidian

created: YYYY-MM-DDTtt:mm

The issue is, I have a note with a created attribute and I want to create a dataview in this note to filter notes that has the same values “YYYY-MM-DD”, but not the same “hh:mm”


I have a Daily Note with the yaml

created: 2023-03-01T00:13

and another note with with the following yaml

created: 2023-03-01T00:32

What can i made Dataview to recognize only the YYYY-MM-DD ?

Things I have tried

WHERE created = this.created
1 Like

My understanding is that striptime is usually used to extract the date element from YAML date-and-time values.

For your syntax, the following should work:

WHERE striptime(created) = striptime(this.created)

But if what you have works as you need, just ignore this post. :wink:


Thank you. This works perfectly for me S2

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.