Yeast infection

I keep getting a yeast infection a few days to my period what can I do?