I have the following sql table (simplified)
ID (int) title (text) date (int) -------------------------------------------- 1 Hello World
You can use from-unixtime()
select FROM_UNIXTIME(`date`, '%d.%m.%Y') as ndate, count(id) as post_count from your_table group by ndate