Depression Medication for menstruation

I literally have the worst depression during my cycle, it makes me so sad I

can’t get out of bed. My doctor recently mentioned that some women take antidepressants during their periods, has anyone ever done this and experience good results?