ugh...freaking out a little

so I've been dieting on and off for years..I know it's horrible but I guess I just got obsessed with losing weight and went about it the wrong way. after new years I decided to do the 17 day diet ( I have done this diet a few times in the past) it's always worked for me..I just got tired of it and went back to my bad eating habits. after I did the 17 day diet I started a 1200 calorie diet.. I'm 5"6 and 172lbs. this diet seemed to be working fine but I've noticed looser bowels. .and now a week before my period I have diarrhea. .not sure if it's because of the diet or my period. .

anyone experience diarrhea a week before period or had these issues with dieting?