How long does it tak to train a dog/puppy?

I know its sort of how long is a peice of string but i would like to get a dog before i start having kids and want for them to be well trained.
5 answers 5