With specific days (i.e. on the 24th of May, on Tuesday, on Christmas Day, on your birthday, etc) it is always "on".
With months, it is always "in" (in December, in March, in the month of May, in the last month of the year, etc).
That's why "in the 24th of May" is wrong.