How many months can I give my baby water between feedings?

If my baby is constipated from formula people advised me water. How much and when?