In the first sentence, Xiao Wang concluded that his dates were not repeated in July and August, only 15, 16 and 17.
In the second sentence, Xiao Zhao concluded that among the months corresponding to 15, 16 and 17, the month he knew was unique, so the answer was 16 July.