In my posts table, it saves timestamp for each post record.
posts
What query can group posts by day, using this timestamp column?
SELECT DATE(timestamp) AS ForDate, COUNT(*) AS NumPosts FROM user_messages GROUP BY DATE(timestamp) ORDER BY ForDate
This found for me. I have timestamp like "2013-03-27 15:46:08".