To avoid the skin damage that can be caused by the sun, dermatologists advise staying out of the sun during the middle of the day when the sun???s rays are strongest, using a broad-spectrum sunscreen ??? one that protects against both types of harmful ultraviolet rays, UVA and UVB ??? with a sun protection factor of 30 or higher, and wearing protective clothing such as a hat when you???re outside.