Regular exposure to the sun is the most natural way to get enough vitamin D. You have to sit for about 10 to 30 minutes in midday sunlight several times per week. People with darker skin might need a little more time than this. Your time of exposure depends on how sensitive your skin is to sunlight.