Sunlight is the primary source of vitamin D. Vitamin D is produced when our skin is exposed to sunlight, especially type B UV (UVB) radiation with a wavelength of approximately 290-320 nm. UVB can convert 7-dehydrocholesterol on the skin into provitamin D3, which eventually leads to vitamin D3. Although sunlight exposure is a simple method to obtain vitamin D, this method also has certain limitations, such as being affected by weather, seasons and the working environment. People cannot guarantee sufficient exposure to sunlight every day. What is more, there is a risk of skin cancer from skin exposure to UV radiation because UV radiation is a carcinogen. Therefore, the actual availability of vitamin D from sunlight is uncertain.