fungus

over the last few years my lawn has had a few periods were it got a fungus. i have sprayed them and that doesn't always seem to work. i know that dethatching and aerating are 2 things that are important in preventing fungus. the thing i need to know is when is the best time to aerate and dethatch my lawns. also any other information that you guys can offer me would be great. thanks