# Filter pages by date in pages section?

**URL:** <https://forum.getkirby.com/t/filter-pages-by-date-in-pages-section/31930>\
**Category:** Questions\
**Tags:** v3\
**Created:** [June 25, 2024, 6:26pm UTC](https://forum.getkirby.com/t/filter-pages-by-date-in-pages-section/31930 "2024-06-25T18:26:31Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![thewebprojects](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/thewebprojects/32/10107_2.png) [@thewebprojects](https://forum.getkirby.com/u/thewebprojects)\
**Post date:** [June 25, 2024, 6:26pm UTC](https://forum.getkirby.com/t/filter-pages-by-date-in-pages-section/31930/1 "2024-06-25T18:26:31Z")

</div>

Hello. I’m using Kirby 3.9.7. In the panel I’d like to present upcoming events and past events. Is it possible to filter pages in the pages section based on a set date in comparison of `time()`? I think I’ve seen some complex workarounds. I want to know if it’s possible out of the box (otherwise I’m just gonna list all the events and the client can work it out). Any insight would be appreciated.

---

<div class="post-metadata">

**Author:** ![texnixe](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/texnixe/32/5754_2.png) [@texnixe](https://forum.getkirby.com/u/texnixe)\
**Post date:** [June 25, 2024, 6:44pm UTC](https://forum.getkirby.com/t/filter-pages-by-date-in-pages-section/31930/2 "2024-06-25T18:44:47Z")

</div>

It’s possible out of the box since Kirby 4.

For Kirby 3, you will have to revert to PHP blueprints, see examples in this recipe: [PHP-based blueprints | Kirby CMS](https://getkirby.com/docs/cookbook/development-deployment/programmable-blueprints#page-blueprint-with-filtered-pages-sections)

---

<div class="post-metadata">

**Author:** ![thewebprojects](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/thewebprojects/32/10107_2.png) [@thewebprojects](https://forum.getkirby.com/u/thewebprojects)\
**Post date:** [June 25, 2024, 6:59pm UTC](https://forum.getkirby.com/t/filter-pages-by-date-in-pages-section/31930/3 "2024-06-25T18:59:58Z")

</div>

I’m livin’ in the past Sonja. I’ll have to get my life in order and upgrade.  
Thanks for confirming. I hope all is well.

---

<div class="post-metadata">

**Author:** ![texnixe](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/texnixe/32/5754_2.png) [@texnixe](https://forum.getkirby.com/u/texnixe)\
**Post date:** [June 25, 2024, 7:19pm UTC](https://forum.getkirby.com/t/filter-pages-by-date-in-pages-section/31930/4 "2024-06-25T19:19:49Z")

</div>

> [@thewebprojects](#):
>
> I’m livin’ in the past Sonja.

Has it advantages…
