How does sunlight exposure affect the body's absorption of vitamin D?

How does sunlight exposure affect the body’s absorption of vitamin D?