If you're treating constipation, taking magnesium during the day may be safest. The time it takes for magnesium to affect ...