there are certain time intervals in a day that you CAN get some sun exposure without worring (too much) about UV rays & skin cancer
Note that it is exposure to ultraviolet light (particularly UVB) that causes the production of Vitamin D.
Note that it is exposure to ultraviolet light (particularly UVB) that causes the production of Vitamin D.
Nevertheless, you have more than a couple of hours to get outside and get some sun. Just have a schedule and stick to it :)
One last thing: visit your doctor often and check for overall nutrient levels (vitamins, minerals, etc) and avoid taking supplements before it.