# Filter HubDB data based on today's date

**URL:** <https://community.hubspot.com/t/filter-hubdb-data-based-on-todays-date/2912>\
**Category:** CMS Development\
**Tags:** hubdb\
**Created:** [August 2, 2017, 12:20pm UTC](https://community.hubspot.com/t/filter-hubdb-data-based-on-todays-date/2912 "2017-08-02T12:20:05Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![giozua](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/giozua/32/840_2.png) [@giozua](https://community.hubspot.com/u/giozua)\
**Post date:** [August 4, 2017, 4:00pm UTC](https://community.hubspot.com/t/filter-hubdb-data-based-on-todays-date/2912/2 "2017-08-04T16:00:43Z")

</div>

Hi Sven,

you must put inside your for cycle this strings:

{% if (row[‘event\_start\_date’]|datetimeformat(‘%j’)) \>= (local\_dt|datetimeformat(‘%j’)) %}

your rows like \<li\>…\</li\>

{% endif %}

note that %j is needed to convert my date (in date format and not datetime) in a timestamp so it’s possible to compare two dates

This string hide the past events

I hope this can help you

Best regards

Giovanni

---

_[View the full topic](https://community.hubspot.com/t/filter-hubdb-data-based-on-todays-date/2912)._
