# Query for dates that are actually links (dataview)

**URL:** <https://forum.obsidian.md/t/query-for-dates-that-are-actually-links-dataview/32628>\
**Category:** Help\
**Tags:** dataview\
**Created:** [February 17, 2022, 10:41am UTC](https://forum.obsidian.md/t/query-for-dates-that-are-actually-links-dataview/32628 "2022-02-17T10:41:29Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![mnvwvnm](https://forum.obsidian.md/user_avatar/forum.obsidian.md/mnvwvnm/32/9766_2.png) [@mnvwvnm](https://forum.obsidian.md/u/mnvwvnm)\
**Post date:** [February 17, 2022, 11:31am UTC](https://forum.obsidian.md/t/query-for-dates-that-are-actually-links-dataview/32628/2 "2022-02-17T11:31:13Z")

</div>

try this:

```auto
WHERE due-date
WHERE date(due-date) <= this.file.day

```

1 - with `date(due-date)` you convert the link (due date is a link) in a date;  
2 - as your files are daily notes with titles in the format “YYYY-MM-DD” you can use the implicit field `file.day`, that extract the date from the file name (attention, to not create any conflict, don’t use any field with the name `Date::`).  
[https://blacksmithgu.github.io/obsidian-dataview/data-annotation/#implicit-fields](https://blacksmithgu.github.io/obsidian-dataview/data-annotation/#implicit-fields)  
3 - you can do the other “calculations” with `file.day`: `WHERE date(due-date) = this.file.day + dur(1day)`  
4 - you can use multiple `WHERE` conditions. They work as multiple “AND”.

---

_[View the full topic](https://forum.obsidian.md/t/query-for-dates-that-are-actually-links-dataview/32628)._
