Spending time outdoors in the sun is one of the best ways to get vitamin D. Aim for 10-30 minutes of sunlight exposure on your skin, at least a few times per week.