# HubDB - group data

**URL:** <https://community.hubspot.com/t/hubdb-group-data/17745>\
**Category:** CMS Development\
**Tags:** hubdb\
**Created:** [December 17, 2019, 8:33am UTC](https://community.hubspot.com/t/hubdb-group-data/17745 "2019-12-17T08:33:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rainism](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/rainism/32/88643_2.png) [@rainism](https://community.hubspot.com/u/rainism)\
**Post date:** [December 17, 2019, 8:33am UTC](https://community.hubspot.com/t/hubdb-group-data/17745/1 "2019-12-17T08:33:59Z")

</div>

Hello.

I managed to group my rows by date.  
The problem I have now - it prints the ids of the dates, I can’t set any datetimeformat when printing {{ group.grouper }}  
Also when I add a second group option into the first one, it just doubles the content  
An example of my code ({{ group.grouper|datetimeformat(‘%H %p’) }} just doesn’t work, it sends an error):

```auto
{% for group1 in table|groupby('date') %}
 <p>{{ group.grouper|datetimeformat('%H %p') }}</p>
 {% for group in table|groupby('time') %}
 <p>{{ group.grouper }}</p>
 {% for row in group.list %}
 <div class="delivery">
 <p>{{ row.name }}</p>
 <p><a href="{{ row.url }}">Url</a></p>
 </div>
 {% endfor %} 
 {% endfor %}
{% endfor %}

```

---

<div class="post-metadata">

**Author:** ![sharonlicari](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/sharonlicari/32/101479_2.png) [@sharonlicari](https://community.hubspot.com/u/sharonlicari)\
**Post date:** [December 20, 2019, 10:14am UTC](https://community.hubspot.com/t/hubdb-group-data/17745/2 "2019-12-20T10:14:08Z")

</div>

Hey @rainism

I will tag a few of our experts to learn from them.

Hey @DanielSanchez @Adesignl @Anton could you please share your knowledge with @rainism?

Thank you & Happy Holidays

Sharon  
 ![16x16_smiley-happy.png.png](https://d2qpr2jzcazej7.cloudfront.net/original/2X/2/22d5e40d253def47f5f4ea7f0e3e70be19010689.png)

---

<div class="post-metadata">

**Author:** ![Anton](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/anton/32/103167_2.png) [@Anton](https://community.hubspot.com/u/Anton)\
**Post date:** [December 20, 2019, 1:51pm UTC](https://community.hubspot.com/t/hubdb-group-data/17745/3 "2019-12-20T13:51:18Z")

</div>

Hi @rainism,

do you have a preview-link for the page you’re building?

Also - have you tried the

`|pprint`

filter?

documetation: [click me](https://designers.hubspot.com/docs/hubl/hubl-supported-filters#pprint)

This should give you an overview of the code and you can debug better.

best,

Anton
