# Display only current year's data

**URL:** <https://community.weweb.io/t/display-only-current-years-data/5885>\
**Category:** How do I?\
**Created:** [December 11, 2023, 7:04pm UTC](https://community.weweb.io/t/display-only-current-years-data/5885 "2023-12-11T19:04:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Takako](https://avatars.discourse-cdn.com/v4/letter/t/4491bb/32.png) [@Takako](https://community.weweb.io/u/Takako)\
**Post date:** [December 11, 2023, 7:04pm UTC](https://community.weweb.io/t/display-only-current-years-data/5885/1 "2023-12-11T19:04:35Z")

</div>

I have:

- a collection, with created\_at (YYYY-MM-DD HH:MM:SS) column.
- a global variable on WeWeb “all\_years\_toggle” (boolean)

And I want to display the data in the collection as lists.

- Displaying only data which is created this year when “all\_years\_toggle” is false
- Display all data when “all\_years\_toggle” is true, regardless the “created\_at” date

How do I accomplish this by using formula?  
Thanks in advance.

---

<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:** [December 12, 2023, 4:30pm UTC](https://community.weweb.io/t/display-only-current-years-data/5885/2 "2023-12-12T16:30:33Z")

</div>

Hi @Takako 👋

Just made this short video for you: [Filter dates — Tella](https://tella.video/filter-dates-87da)

Does it help?

---

<div class="post-metadata">

**Author:** ![Takako](https://avatars.discourse-cdn.com/v4/letter/t/4491bb/32.png) [@Takako](https://community.weweb.io/u/Takako)\
**Post date:** [December 12, 2023, 5:35pm UTC](https://community.weweb.io/t/display-only-current-years-data/5885/3 "2023-12-12T17:35:12Z")

</div>

Thanks a lot @Joyce ,  
Yes this is what I was looking for.  
I don’t know why I didn’t notice the filter.

Thanks again.
