Change exception handling to explicitly check for valid day values.