Actually, to gain more vitamin D neither morning nor evening sunlight is good. The best time is noon. UVA rays of sunlight are constant during the whole time but UVB rays which are required for development of vitamin D are high at noon. So to use sun to provide you with maximum vitamin D, middle of the day is best.