Toilet training duration can vary depending on many factors like the dog's age, breed, and previous training experiences. Typically, consistent training can lead to significant progress within a few weeks to a few months.
It's ideal to start toilet training as early as possible, ideally when the dog is a puppy. However, older dogs can also be trained successfully with patience and consistency.