Tanzania can be visited all around the year. But if the best time is considered, June to October is good as the temperature stays below the summer peaks. Zanzibar is good to visit during the hotter months of December and January.
If you love hiking, then Kilimanjaro climbing is the best between July and October or January to March.
So anytime you choose for your vacation in Tanzania, it has everything to make your holiday a lifetime memory.