The best time to take worm medicine for kids is as soon as possible. The medicine should start working right away, but it may take several days to kill all the worms. It's important to take the whole course of treatment to ensure effectiveness.