why do i keep having mood swings

I keep having mood swings. One minute i am really happy and the next minute i am crying i also get angry over stupid things.

this usally takes place during menses,due to pain