Select Max(date_collumn_name)
From table_name
Where month(date_collumn_name) = $month
Group By dayofmonth(date_collumn_name)
You wrote all of the days of a certain month, so I suppose you know the month. Add it in place of $month variable.
I hope it is possible to use date functions in group gy clause in mySQL, otherwise you will need other way to solve this.