When is the best time to get vaccinated against the flu?

When is the best time to get vaccinated against the flu?