This has to be the most poorly worded question I've ever seen. With the poor wording, there is no way to answer the question (unless we assume the statements they make apply to the shitty wording of the preceding part of the question to identify what each were actually told).
Taking a leap away from the shitty grammar of the "Cheryl then tells Albert ... respectively", assuming it meant:
"Cheryl then tells Albert the month and Bernard the day of the month of her birthday..."
Albert's first statement:
-You know it can't be the 18th or 19th since there is a possibility Bernard would have known the birthday if it was one of these days (only one month with 18 and one with 19). This eliminates May and June.
At this point, you now know:
+Could be July, or August.
+Could be 14th, 15th, 16th, or 17th.
Bernard's first statement:
-He now knows May and June have been eliminated, and now knows the birthday. This means that whatever day he got must be present in either May or June. Now that he is certain he knows the birthday, it also means that one of the day he got must only be present in either July or August, which eliminates the 14th.
At this point, you now know:
+Could be July, or August.
+Could be 15th, 16th, or 17th.
Albert's second statement:
-He now knows that the 14th has been eliminated, which means that the only way he can know her birthday is if the month is July, otherwise he would still not be able to discern between August 15th and 17th.
The answer is July 16th. Yea, it's a bitch. Took some time to figure out