Has anyone decided..

On wether or not they are going to breastfeed or use formula? I am thinking about breastfeeding my little one. But how long can it be kept if we are out and about in town for awhile??? Does it always have to be refrigerated? I guess I'm just a little confused on some things.