Breadt Milk

How long is a bottle of breastmilk good for if i take it woth me in my diaperbag ? I want to pump milk gor when i have to ñeave the house it’s more convenient. Will