A newborn baby was hospitalised after drinking baby formula bought in a supermarket that turned out to be almost nine years out of date.