While vitamin D is among the most important nutrients for health and well-being and exposure to sun rays is the best way to get it. And so, midday is the best time to get vitamin D, as the sun is at its highest point and your body may manufacture it most efficiently. Vitamin D is made from cholesterol in your skin.