How can Vitamin D supplements affect fatigue and mood swings?

How can Vitamin D supplements affect fatigue and mood swings?