This is difficult because the sun can harm the skin and cause premature ageing and sun cancer. However, we get vitamin D from the sun which helps us absurd calcium so we do need exposure to sunlight. It is best to avoid the sun between the hours of 11am and 3pm as the sun is very strong and harmful during these times.
Thanks