How long should you take diazepam (valium) before the drug is rendered useless?

Not so. Valium is not destined to become useless. Some people develop tolerance but most don't the time course is related to symptoms and if one is symptom free, then the suggestion is that you talk to your doctor about weaning off, but talk to your doctor before stopping.