Do a test piece first, but this works for mildew stains. Squeeze fresh lemon juice over the stained area, and put in sun for a few hours, wash and the stain should be gone.
It is important to test a bit first in case the fabric is discoloured by the juice.