Constipation 1 Month Old

Jennifer • I`m 27 Wife and Mommy to a little boy
I stopped breastfeeding a couple weeks ago for personal reasons. So I'm doing the fussing gas formula. Yesterday he only pooped once and it was pretty solid and all day yesterday and so far today he his fighting to poop. Does anyone know what to to help if he is constipated?