from-を使用できます。 unixtime() select FROM_UNIXTIME(`date`, '%d.%m.%Y') as ndate, count(id) as post_count from your_table group by ndate