It also helps stimulate the nerves in the intestines. It can take anywhere between 6 to 24 hours for milk of magnesia to work depending on the dosage of the laxative used. Magnesium hydroxide is a chalky tasting liquid that comes in bottles. It is found in its original form as well as flavored and non-flavored forms. The flavors available are cherry and mint.