# Display HubDB Date Column

**URL:** <https://community.hubspot.com/t/display-hubdb-date-column/46533>\
**Category:** Blog, Website & Page Publishing\
**Tags:** developer, website-pages\
**Created:** [November 5, 2021, 10:25am UTC](https://community.hubspot.com/t/display-hubdb-date-column/46533 "2021-11-05T10:25:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ben-duchy](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/ben-duchy/32/84083_2.png) [@ben-duchy](https://community.hubspot.com/u/ben-duchy)\
**Post date:** [November 5, 2021, 10:25am UTC](https://community.hubspot.com/t/display-hubdb-date-column/46533/1 "2021-11-05T10:25:23Z")

</div>

Hello could someone give the below code the once over please?  
I’ve used the date filter a million times before, but for some reason it’s not working this time!

```lia-code-sample
{% set date_test = hubdb_table_rows(1234567) %}
{% set close_date = unixtimestamp(row.close_date) %}

{% for row in date_test %}
 {{ close_date | datetimeformat('%e/%m/%Y') }} <br>
{% endfor %}

```

The above only displays todays date on every row, even though the dates are different within HubDB. I’m puzzled!

---

<div class="post-metadata">

**Author:** ![ben-duchy](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/ben-duchy/32/84083_2.png) [@ben-duchy](https://community.hubspot.com/u/ben-duchy)\
**Post date:** [November 5, 2021, 10:32am UTC](https://community.hubspot.com/t/display-hubdb-date-column/46533/2 "2021-11-05T10:32:36Z")

</div>

Ignore me, I needed to put the ’ set close\_date’ within the loop - school boy error! 😣

```lia-code-sample
{% set date_test = hubdb_table_rows(1234567) %}

{% for row in date_test %}
 {% set close_date = unixtimestamp(row.close_date) %}
 {{ close_date | datetimeformat('%e/%m/%Y') }} <br>
{% endfor %}

```
