B-complex vitamins should be taken early in the day, preferably with your first meal, as they help the body produce energy from food and taking them later in the day can interfere with your sleep.