You could let the baby cry it out as a part of their sleep training method when they are about 5 to 6 months old. By this age, the babies can sleep in the night without needing to be fed.