A rhyme many Canadians learn: "Thirty days has September, April, June and November. All the rest have thirty-one, except February alone, which has 28 days clear, and 29 in each leap year."
Or use your knuckles: make a fist. Touch your first knuckle and say "January", the dip after it "February", the next knuckle "March", and so on. When you reach July on your last knuckle, go back to the first knuckle for August. Months on a knuckle have 31 days. Months in a dip have 30 days, except February.