Sunscreen should be applied at least every two hours while spending time outdoors. Additionally, it should be reapplied after swimming or excessive sweating to ensure optimal protection from the sun's harmful UV rays.