Generally speaking, urinary control comes before control of bowel movements and dry nights come well behind both. (verywellfamily.com)
The development of urinary control is a maturational process. (mygoodparenting.com)
If your dog shows any of these, speak with your veterinarian about the possibility of diabetes: Excessive thirst / drinks more water than usual (polydipsia) Urinates more frequently or in greater volumes (polyuria) or perhaps loses urinary control Consistently acts hungry (polyphagia) but maintains or loses weight Unusually sweet - smelling or fruity breath (from ketone production) Lethargy Dehydration Urinary tract infections Vomiting Chronic skin infections Cloudy or misty eyes (primarycarevet.com)