# Filter by date in collection

**URL:** https://community.weweb.io/t/filter-by-date-in-collection/6311
**Category:** How do I?
**Tags:** supabase
**Created:** [January 10, 2024, 9:49pm UTC](https://community.weweb.io/t/filter-by-date-in-collection/6311 "2024-01-10T21:49:08Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![sam1](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/sam1/32/6724_2.png) [@sam1](https://community.weweb.io/u/sam1)
#### Post date: [January 10, 2024, 9:49pm UTC](https://community.weweb.io/t/filter-by-date-in-collection/6311/1 "2024-01-10T21:49:08Z")

</div>

Hello.

I have a payments table and I would like to have a collection that brings in only the payments where the date \> an input and date \< input+1 day but I don’t have the option for less then or greater then in the query configuration. Yet I do get the options once I have created a collection. How can I achieve this?

 ![image](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/5/5a8c5c58ffc87723a13fe4cf9934fc6836f0a51c.png)  
 ![image](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/b/b28aba086fe28aa5148f126bc09c1f330425abfe.png)

---

<div class="post-metadata">

### Author: ![Broberto](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/broberto/32/5918_2.png) [@Broberto](https://community.weweb.io/u/Broberto)
#### Post date: [January 10, 2024, 11:50pm UTC](https://community.weweb.io/t/filter-by-date-in-collection/6311/2 "2024-01-10T23:50:28Z")

</div>

Not possible for now. There is some alternate solutions, I suggest searching the forum.

---

<div class="post-metadata">

### Author: ![sam1](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/sam1/32/6724_2.png) [@sam1](https://community.weweb.io/u/sam1)
#### Post date: [January 11, 2024, 12:10am UTC](https://community.weweb.io/t/filter-by-date-in-collection/6311/3 "2024-01-11T00:10:19Z")

</div>

I was looking into other ways around this and discovered that my load table can be filtered by date?

 ![image](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/b/b311758e805091f9bc979b4b909924d84e8e00b1.png)

---

<div class="post-metadata">

### Author: ![Broberto](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/broberto/32/5918_2.png) [@Broberto](https://community.weweb.io/u/Broberto)
#### Post date: [January 11, 2024, 8:11am UTC](https://community.weweb.io/t/filter-by-date-in-collection/6311/4 "2024-01-11T08:11:54Z")

</div>

You’re joining the payment table with something? Or how is the query? Why is the payment\_date an object? I’d need to understand your structure

---

<div class="post-metadata">

### Author: ![sam1](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/sam1/32/6724_2.png) [@sam1](https://community.weweb.io/u/sam1)
#### Post date: [January 11, 2024, 8:47pm UTC](https://community.weweb.io/t/filter-by-date-in-collection/6311/5 "2024-01-11T20:47:46Z")

</div>

The payment date is just a timestampz field on the payments table im not doing any queries in supabase.

---

<div class="post-metadata">

### Author: ![Broberto](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/broberto/32/5918_2.png) [@Broberto](https://community.weweb.io/u/Broberto)
#### Post date: [January 11, 2024, 10:25pm UTC](https://community.weweb.io/t/filter-by-date-in-collection/6311/6 "2024-01-11T22:25:41Z")

</div>

Then you just need to fetch the collection first with the filters disabled probably, or there is some other issue with the date. How does it look in the data sidebar? It looks like it’s an object of some sort.

---

<div class="post-metadata">

### Author: ![sam1](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/sam1/32/6724_2.png) [@sam1](https://community.weweb.io/u/sam1)
#### Post date: [January 11, 2024, 10:47pm UTC](https://community.weweb.io/t/filter-by-date-in-collection/6311/7 "2024-01-11T22:47:50Z")

</div>

I gave that a try, unfortunately no luck, here’s the data sidebar.

 ![image](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/a/a672c9632d62237379b8eb1bb6f15bcb4c1de3ce.png)

---

<div class="post-metadata">

### Author: ![sam1](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/sam1/32/6724_2.png) [@sam1](https://community.weweb.io/u/sam1)
#### Post date: [January 11, 2024, 10:51pm UTC](https://community.weweb.io/t/filter-by-date-in-collection/6311/8 "2024-01-11T22:51:45Z")

</div>

here is what supabase looks like too

 ![image](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/a/aac51998398d49c17051a002283166f262e79662.png)

---

<div class="post-metadata">

### Author: ![Broberto](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/broberto/32/5918_2.png) [@Broberto](https://community.weweb.io/u/Broberto)
#### Post date: [January 11, 2024, 11:01pm UTC](https://community.weweb.io/t/filter-by-date-in-collection/6311/9 "2024-01-11T23:01:21Z")

</div>

Probably weweb is interpreting the date in a wrong way @Alexis?

---

<div class="post-metadata">

### Author: ![sam1](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/sam1/32/6724_2.png) [@sam1](https://community.weweb.io/u/sam1)
#### Post date: [January 15, 2024, 11:38pm UTC](https://community.weweb.io/t/filter-by-date-in-collection/6311/10 "2024-01-15T23:38:43Z")

</div>

I checked again today and the date was being interpreted correctly unsure what changed but its working now 🤷‍♂️
