How long do you wear a bandage when you have a torn knee ligament or cartilage?

Varies. This can vary widely because the treatment can vary widely for different conditions and amongst different physicians. There are protective braces that can assist with comfort and rehabilitation for these injuries but their use varies depending on the specific injury. Ask your doctor for more specifics regarding this.