What time to what time is the best time to ask for candy in Halloween?

Children usually start trick or treating at dusk and go as late as 9 p.m. Anytime after you might be disturbing people's sleep.