The sun is meant to be enjoyed – To lounge in, to play in, to bask in. But, you have to know the basics to make your time in the sun safer.
UVA and UVB rays from the sun can be damaging to the skin. If the proper sunscreen protection isn’t worn during sun exposure, this leads to aging, can cause unsightly skin damage and even skin cancers. While UVA rays go deeper into the skin causing damage to collagen leading to aging, wrinkles, and even skin cancers, UVB impacts superficially causing sunburn and skin cancers as well.
Sunscreens have ingredients that help in absorbing or scattering UV rays. These products are formulated to provide various levels of protection from UVA, UVB and Infrared radiation. 
Most people do not apply enough sunscreen. An adult should use 2 tablespoons of sunscreen if they intend to protect the entire body while wearing a swimming costume. This should be applied 30 minutes prior to going outside. Apply 2 teaspoons full if only for the face, neck, and arms.
Some sunscreens may have an expiry date written on the box, however the active ingredients in the sunscreen deteriorate over time and this would happen faster if you leave it in direct sunlight, heat, or humidity. If it looks or smells differently or the texture is clumpy, then it might be expired.