I got our dog at 12 weeks and she still woke up in the middle of the night needing out for a few weeks after that. An 8 week old will probably need out twice at night, while a 4-5 month old should be able to sleep through the night. They are a little smarter and easier to train if they are on the older side.