# Filter using a variable?

**URL:** <https://forum.ghost.org/t/filter-using-a-variable/62709>\
**Category:** Using Ghost\
**Created:** [April 25, 2026, 8:15pm UTC](https://forum.ghost.org/t/filter-using-a-variable/62709 "2026-04-25T20:15:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![EditUndoom](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/editundoom/32/40341_2.png) [@EditUndoom](https://forum.ghost.org/u/EditUndoom)\
**Post date:** [April 25, 2026, 8:15pm UTC](https://forum.ghost.org/t/filter-using-a-variable/62709/1 "2026-04-25T20:15:47Z")

</div>

Hello! I have a page where I post events and I’m trying to make it so that the page will only display events occurring in the future. Can I use a private tag containing the date and time of the event and compare it to current date and time to determine if it should be displayed? I would also like the page to sort by event date and not date of post. Thanks!
