Hello

I got a select query that outputs a bunch of results. All the results have a timestamp column.

How can I group these results by days and wrap each day into a div?

e.g

<div>
result 1 - day1
result 2 - day1
result 3 - day1
</div>

<div>
result 4 - day2
result 5 - day2
</div>