While sunlight is the primary source of vitamin D, not everyone can consistently spend time outdoors to absorb it.