Try something like thi.
SELECT COUNT(*) c, DATE(FROM_UNIXTIME( timestamp) ) day FROM log
GROUP BY day ORDER BY c DESC LIMIT 1;
DATE(FROM_UNIXTIME( timestamp ))
converts to a datetime and then a date.
By the way, you might consider storing your dates as datetime
or timestamp
structures. Storing as unix timestamps and then having to convert to useable dates is less than ideal.