# Filtering object collection by data

**URL:** <https://community.weweb.io/t/filtering-object-collection-by-data/10041>\
**Category:** How do I?\
**Tags:** formulas\
**Created:** [July 31, 2024, 3:17pm UTC](https://community.weweb.io/t/filtering-object-collection-by-data/10041 "2024-07-31T15:17:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Totzy](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/totzy/32/10721_2.png) [@Totzy](https://community.weweb.io/u/Totzy)\
**Post date:** [July 31, 2024, 3:17pm UTC](https://community.weweb.io/t/filtering-object-collection-by-data/10041/1 "2024-07-31T15:17:52Z")

</div>

Hey there I would like to filter an event collection with only the Today event, the date format is a unix

 ![Capture d’écran 2024-07-31 à 17.15.24](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/d/da0503f4474956252349065647766e9d136d7d2e.png)  
But it doesnt seems that I can do a formula like : If(date begine is within today, 1, 0)

---

<div class="post-metadata">

**Author:** ![Joyce](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/joyce/32/13232_2.png) [@Joyce](https://community.weweb.io/u/Joyce)\
**Post date:** [August 1, 2024, 1:42pm UTC](https://community.weweb.io/t/filtering-object-collection-by-data/10041/2 "2024-08-01T13:42:59Z")

</div>

Hi @Totzy 👋

It looks like `debut` is a number. Is that intended?

You might need to add the `Date` plugin and work with date formulas to achieve the result you want.

Here’s some [documentation on WeWeb date formulas](https://docs.weweb.io/formulas/date.html#comparedate).

Does that help?
