@Trinity11you are right
snip from Yale medicine
How do you get vitamin D?
The short answer is from food, the sun or supplements.
There are two main kinds of vitamin D—vitamin D2 and vitamin D3—which you can get from (and occur naturally in) certain foods like salmon, tuna, mackerel and beef liver and egg yolks. But because we don’t consume large enough quantities of these foods, they can’t be our sole source of vitamin D. That’s why foods like milk, cereal and some orange juices are vitamin D2- and D3-fortified. (Since the 1930s, manufacturers have voluntarily enriched these foods with vitamin D to help reduce the incidence of nutritional rickets.)
When exposed to the sun, your skin can manufacture its own vitamin D. “We each have vitamin D receptor cells that, through a chain of reactions starting with conversion of cholesterol in the skin, produce vitamin D3 when they’re exposed to ultraviolet B (UVB) from the sun,” says Yale Medicine dermatologist David J. Leffell, MD, chief of Dermatologic Surgery.
Another avenue to get vitamin D is by taking supplements. These come in both pill and liquid form. They are generally recommended for people with fat absorption issues, lactose intolerance, milk allergies, as well as for people with darker skin tones or with certain medical conditions that prevent them from going outdoors.