Sun exposure is perhaps the most important source of vitamin D because exposure to sunlight provides most humans with their vitamin D requirement [13]. UV rays from the sun trigger vitamin D synthesis in skin [13-14]. Season, geographic latitude, time of day, cloud cover, smog, and sunscreen affect UV ray exposure and vitamin D synthesis [14]. For example, sunlight exposure from November through February in Boston is insufficient to produce significant vitamin D synthesis in the skin. Complete cloud cover halves the energy of UV rays, and shade reduces it by 60%. Industrial pollution, which increases shade, also decreases sun exposure and may contribute to the development of rickets in individuals with insufficient dietary intake of vitamin D [15]. Sunscreens with a sun protection factor (SPF) of 8 or greater will block UV rays that produce vitamin D, but it is still important to routinely use sunscreen to help prevent skin cancer and other negative consequences of excessive sun exposure.
An initial exposure to sunlight (10 -15 minutes) allows adequate time for Vitamin D synthesis and should be followed by application of a sunscreen with an SPF of at least 15 to protect the skin. Ten to fifteen minutes of sun exposure at least two times per week to the face, arms, hands, or back without sunscreen is usually sufficient to provide adequate vitamin D [14]. It is very important for individuals with limited sun exposure to include good sources of vitamin D in their diet.
Link