Baby sleep question!

Please tell me when I can stop waking my baby to eat every 2-3 hours. When is it ok to let them sleep through the night???