"Chevron gasoline can be stored for a year without deterioration when the storage conditions are good -- a tightly closed container, moderate temperatures, and out of direct sunlight.
Chevron recommends that gasoline not be stored unnecessarily. A supply that won't be needed for several months should be used and replenished when the need reoccurs."
Note that most car fuel tanks are "vented" into the EVAP system where the vapors should be caught, and thus may not meet the tightly closed container criteria.
"In general, gasoline should be used within a month of purchase. When the engine will not be used for an extended period of time, it’s best to drain the fuel tank and then run the engine until it stalls."