Putting the sunshine vitamin in the spotlight We all get vitamin D in two ways – from our diet and from exposure to the sun. A lack of this vitamin puts young children at risk of bone diseases like rickets and older children and adults at risk of bone softening .