Magnesium supplements can be taken at any time of the day. Depending upon your preference, it can be taken in the morning or have them just before going to bed. As long as you are consistent and stick to your dosage, your supplement will work.