I’m not sure exactly what you mean by the day of the month — do you want to group February 1 from March 1? Or do you mean only the date? Assuming the latter, how about this:
SELECT DATE(date) as d,count(ID) from TABLENAME where TID=8882 GROUP by d;
source
share