Is it safe to eat canned food past expiration date if the can were exposed to summer heat and freezing in the winter?

It isn't safe to eat canned food past the expiration date even though you expose to summer heat and freezing in the winter because the food has a special date.