Take out
6月7日
12月2日
because they are unique for 小强.
Take out all days in these two month 6月 and 12月
because 如果我不知道的话,小强肯定也不知道
for example 小明 can't have 12月 because he doesn't know what number 小强 has. It is possible 小强 has 2日. So, it violates the statement 如果我不知道的话,小强肯定也不知道.
3. We have the leftover as follows:
3月4日
3月5日
3月8日
9月1日
9月5日
from the second statement:
小强说:本来我也不知道,但是现在我知道了
The day number can't be 5 because it should be an unique number (otherwise 小强 still doesn't know which month it is)
Take out
3月5日
9月5日
4. We still have
3月4日
3月8日
9月1日
from the last statement
小明说:哦,那我也知道了
the month number should be unique too. if it is 3月, 小明 still doesn't know what number the day is.