When is the optimal time to receive the flu vaccine for maximum protection?

When is the optimal time to receive the flu vaccine for maximum protection?