It depends on the salt mix. Some salt mixes like Instant Ocean don't contain any organics and can be store for long periods of time, provided the container is well-sealed and the water doesn't get contaminated.
Some other mixes contain organics that can degrade over time (Reef Crystals is one of the more popular examples). These mixes should be used shortly after mixing.