According to the CDC and ABM guidelines, breast milk can stay in a cooler with ice packs for up to 24 hours and remain at a safe temperature.