Magnesium for digestion?

Has anyone tried magnesium supplements to help with digestion? I think I have delayed digestion. I feel really bloated late at night like all the day's food is still there. I also skip about 2 days between toilet visits. Any advice would be appreciated.

I don't know. You can try digestive enzymes capsule.

Thanks.