Depending on the location and severity of the infection, and your immunity, the duration of anti-fungal drug treatment varies. It usually takes only a few days to treat oral thrush, but it may take up to eight weeks for toenail fungus to be treated.